ObjectDB ObjectDB

Internal Website Search

61-70 of 162 resultsRefresh

Field not persisted in abstract class with two level of nesting

();         em.clear();     } } TZ1 package BUG2; import javax.persistence.Embeddable; @Embeddable public class TZ1  extends AS<TZ1>{     TZ1() {     }         public TZ1(String v ... package BUG2; import javax.persistence.Embeddable; @Embeddable abstract class AS<Type2


javax.persistence Annotation Transient Target: Fields (including property get methods) Specifies that the property or field is not persistent. It is used to annotate a property or field of an entity class, mapped superclass, or embeddable class. Example: @Entity public class Employee


javax.persistence.metamodel Annotation StaticMetamodel Target: Classes The StaticMetamodel annotation specifies that the class is a metamodel class that represents the entity, mapped superclass, or embeddable class designated by the value element. Since: JPA 2.0 Class<?> value Class being modeled


, mapped superclass, or embeddable class, or to a specific attribute of such a class. Since: JPA 2.0


Annotation Element javax.persistence.ElementCollection Class targetClass (Optional) The basic or embeddable class that is the element type of the collection. This element is optional only if the collection field or property is defined using Java generics, and must be specified


javax.persistence.metamodel Interface EmbeddableType<X> Superinterfaces: ManagedType<X>, Type<X> Instances of the type EmbeddableType represent embeddable types. Since: JPA 2.0 Attribute<?,?> getAttribute(String name) Return the attribute of the managed type that corresponds to the specified name


property or field of the referencing entity or embeddable class; "_"; "KEY". Default value: "" Since: JPA 2.0


javax.persistence Annotation MapKeyClass Target: Fields (including property get methods) Specifies the type of the map key for associations of type java.util.Map. The map key can be a basic type, an embeddable class, or an entity. If the map is specified using Java generics, the MapKeyClass

Issues with JDO Casting & Full Qualified Names

.persistence.Embeddable; import javax.persistence.Entity; import javax.persistence.EntityManager ... HashMap<String, EmbeddedBase>(); } @Embeddable public static class EmbeddedBase {   String base = "TEST"; } @Embeddable public static class EmbeddedA extends EmbeddedBase {   String name

ArrayIndexOutOfBoundsException with enhanced Entity

Hi! We have an two entities, the first one is something like: @Embeddable class TestEmbed ... etc etc.). However It seems to happen only with an embeddable entity embedded within another embeddable entity like: @Embeddable class Embed_A {} @Embeddable class Embed_B { private Embed_A embedA; .. } @Entity class MyEntity

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