ObjectDB ObjectDB

Internal Website Search

81-90 of 165 resultsRefresh

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

javax.persistence.Embeddable; import javax.persistence.Embedded; import javax.persistence ... + "]";         }     }     @Embeddable     public static class AId {         // @Embedded // case 1, not annotated, error 631 ... CascadeType.PERSIST: @Embeddable public static class AId {     @OneToOne(cascade

Issue with Casting / Joins

Hi I can't seem to find my way out of this. Basically what I have is something like: @Embeddable public class EmbeddedBase { ... } @Embeddable public class EmbeddedA extends EmbeddedBase ...   = new HashMap<String,EmbeddedBase>();     }     @Embeddable     public static class EmbeddedBase

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

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 ... and e2 have the same type and the same primary key value. For embeddable objects, e1 = e2 if e1

Missing (null) elements in eager loaded references

I have the following problem: Setup: Two hierachical Entities (Element, DataElement), which contain an ElementCollection of Embeddables (Costs). The Embeddable from the ElementCollection ... ; @Basic private String label; etc... } Embedable: @Embeddable public class Cost

can't get HashMap out of the database

is considerably more complicated and it is still not working. It involves nested embeddable objects ... is: @Embeddable public class Guest implements Serializable { private String name; private ... ()); } The full project attached. Please advise if nested embeddable objects are supported. Kind regards

EmbeddedId with Generated field value

; } @Embeddable public class CompositePK {     private long uid;     private String zone; } In ... only for entity objects (and not for embeddable classes). Consider using: @IdClass(ZoneId.class ... . But at this point has ZoneId class (or CompositePK class) to be declared as @Embeddable static

collection of embedded objects

of @Embeddable objects? ie. Suppose I want to query: SELECT count(a) FROM A a WHERE a.setOfB.value =:value ... is a user defined embeddable class or a collection of user defined embeddable classes. Therefore, in

Problem witch CriteriaBuilder isMember(..)

misunderstood some essentials I have defined an entity class and an embeddable class like this @Entity ... <String>(); Testclass testobject = new Testclass(0,0); } @Embeddable class Testclass { long uid = 0 ... again. Until build 2.6.4_09 the isMember method works fine with embeddable objects. But in 2.6.5_02 and 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 ... .persistence.Embeddable; import javax.persistence.Entity; import javax.persistence.EntityManager; import

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support