About embeddable

81-90 of 147Refresh
Forum
2

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @Embeddable public ... of the following data types: ......... Instances of user defined classes (entity classes and embeddable classes ... have the same type and the same primary key value. For embeddable objects, e1 = e2 if e1 and e2
Forum
2

Query to find object from element of a contained collection

= null;     ... }       Although serializable objects that are not entity or embeddable classes ... due to their limitations. Try to define OrderItemData as en embeddable class. In addition, replace the ordinary array ... you for the fast support, indeed the few classes that were not entity nor embeddable have been set as
Forum
2

Weird behaviour with enhanced classes and embedded entities

.CascadeType; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax ... > getEmbeddedEntities(){       return embeddedEntities;     }   }     @Embeddable   static class ... ){       this.embeddedEntities.add(entity);     }   }     @Embeddable   static class
Issue
2

Weird issue with variable naming

javax.persistence.CascadeType; import javax.persistence.Embeddable; import javax.persistence.Entity ... )   {    for (MyMapEntity me : mapEntities)    {     map.put(me.name123, me);    }   } } @Embeddable ... : package com.test; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax
Forum
2

can't get HashMap out of the database

and it is still not working. It involves nested embeddable objects. I've modified the test code ... ) at guest.GuestTest.test(GuestTest.java:25) The Guest object is: @Embeddable public class Guest ... . Please advise if nested embeddable objects are supported. Kind regards, Natalia. Nested embedded
Forum
2

Changing existing objects from Entity to Embedded

on this page: In ObjectDB 2.0 classes can be either persistence capable (entity classes) or embeddable. To use embedded objects you must declare classes as embeddable (rather than the reference fields as in ObjectDB 1.0), either by annotation (@Embeddable) or by external XML metadata ( in package.jdo). jakab
Forum
2

collection of embedded objects

always. Is there any advantage to indexing collections of @Embeddable objects? ie. Suppose I want to query ... an ordinary index on a field whose type is a user defined embeddable class or a collection of user defined embeddable classes. Therefore, in the above example, setOfB cannot be indexed by
Forum
2

Exception when querying Map property with @embedded & Enhancer enabled

MyEntity2 Thanks   import java.util.LinkedHashMap; import javax.persistence.Embeddable; import javax ... + "]";   } } @Embeddable public static class MyAttributeItem {   private String id;   private String name ... you for this test case that demonstrates an unexpected limitation of enhanced embeddable classes in queries
Forum
2

how explorer queries work

loading, reflection, etc. ObjectDB knows to build missing entity and embeddable classes, based ...  explain the mismatching. Try to avoid using user defined serializable non entity / embeddable classes (which are not recommended anyway) and use embeddable classes instead. This way ObjectDB will be able to complete your missing classes. jon
Forum
2

Problem witch CriteriaBuilder isMember(..)

misunderstood some essentials I have defined an entity class and an embeddable class like this @Entity ... >      testlist2 = new LinkedList();     Testclass    testobject = new Testclass(0,0); } @Embeddable ... have to bother again. Until build 2.6.4_09 the isMember method works fine with embeddable objects