ObjectDB ObjectDB

Internal Website Search

81-90 of 158 resultsRefresh

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

Explorer in 2.3

the value of a field of type 'A' where A is an @Entity or @Embeddable. I could do this using a Java ... to set a value of an @Entity or @Embeddable field. ie. I want to set the value of a field of type 'A' where A is an @Entity or @Embeddable. So I enter a JPQL query which returns a single object. Or I

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

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

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

how explorer queries work

to build missing entity and embeddable classes, based on the schema that is internally stored in ... 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. support Support

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

Changing existing objects from Entity to Embedded

(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

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

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