ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
36

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW ... manager closes and as expected both a mapped @OneToMany list and an unmapped @OneToMany list are viewable: a.listA_mapped:[{A}[4]"ownedElement1", {A}[5]"ownedElement2"] a.listB_unmapped:[{B}[2]"b1", {B}[3
36

Optimization of Map Queries

hi! I am having loads and loads of occurrences of something like ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someProperty ... ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someOtherProperty .. ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someMoreProperties I need
13

Error 990 when querying a class with persistence-capable-superclass

error. The code was working with the class in this case until I added a persistence-capable-superclass ... to what is likely to be involved, to help me with this work? Could it be because of the superclass, as ... a discriminator column when concrete superclasses are involved - is that entirely transparent with ObjectDB
12

javax.persistence.MappedSuperclass

information is applied to the entities that inherit from it. A mapped superclass has no separate table ... for the mapped superclass itself. When applied to the subclasses the inherited mappings will apply in ... : Concrete class as a mapped superclass @MappedSuperclass public class Employee
12

javax.persistence.PrimaryKeyJoinColumn

of the superclass (JOINED mapping strategy); the same name as the primary key column of the primary table ... table of the superclass (JOINED mapping strategy); the same name as the primary key column ... . It is used to join the primary table of an entity subclass in the JOINED mapping strategy
9

javax.persistence.metamodel.ManagedType

represent entity, mapped superclass, and embeddable types. Since: JPA 2.0 Attribute<?,?> getAttribute ... in the managed type Since: JPA 2.0 MapAttribute<X,?,?> getDeclaredMap(String name) Return the Map-valued attribute declared by the managed type that corresponds to the specified name. Return the Map
9

javax.persistence.metamodel.Type.PersistenceType

Since: JPA 2.0 PersistenceType ENTITY Entity Entity Since: JPA 2.0 PersistenceType MAPPED_SUPERCLASS Mapped superclass Mapped superclass Since: JPA 2.0 PersistenceType valueOf(String name) Returns
7

getSupertype()

Method javax.persistence.metamodel.IdentifiableType IdentifiableType<?> getSupertype() Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass. Returns: supertype of identifiable type or null if no such supertype Since: JPA 2.0
7

javax.persistence.metamodel.Metamodel

) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Return the metamodel managed type representing the entity, mapped superclass, or embeddable class
7

javax.persistence.EntityListeners

javax.persistence Annotation EntityListeners Target: Classes Specifies the callback listener classes to be used for an entity or mapped superclass. This annotation may be applied to an entity class or mapped superclass. Since: JPA 1.0 Learn how to define and use entity listeners in Chapter 3

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