Home » Search

About embeddable

81-90 of 143Refresh
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
Forum
2

EmbeddedId with Generated field value

; } @Embeddable public class CompositePK {     private long uid;     private String zone; } In ... objects (and not for embeddable classes). Consider using: @IdClass(ZoneId.class) @Entity public static ... (or CompositePK class) to be declared as @Embeddable static class with annotated fields? I believe
Forum
2

Problem with entities detection

. The only difference is an @Embeddable annotion in a class, and an @Embedded annotation in another. The problem ... )  and objectdb.Direccion (the @Embeddable) to the same package of centroController, it just works ... ; And this is the Embedded class: @Embeddable public class Direccion implements Serializable
Forum
1

A few questions on object database design

everything about the player as embeddable classes. However, my colleague questions about this structure ... between entity classes and embeddable classes is easy, so if you already have tests that check
Forum
1

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

an embeddable class, and that may cause data duplication, since every ChatHistoryItem holds its own PersonalData instance in the receipt field. To avoid data duplication consider using Entity instead of Embeddable for this type. galandor