ObjectDB ObjectDB

Internal Website Search

1-10 of 18 resultsRefresh
108

javax.persistence.IdClass

javax.persistence Annotation IdClass Target: Classes Specifies a composite primary key class that is mapped to multiple fields or properties of the entity. The names of the fields or properties in ... and their types must be the same. Example: @IdClass(com.acme.EmployeePK.class) @Entity public class
105

IdClass.value

Annotation Element javax.persistence.IdClass Class value Primary key class Since: JPA 1.0
63

JPA Primary Key

above. For example, the primary key of the following Project entity class consists of two fields: @Entity @IdClass ... that is attached to the entity class using the @IdClass annotation. The ID class reflects the primary
30

JPA Annotations for Classes

Reference (JavaDoc) of JPA 2 class annotations, including @Entity, @Embeddable, @IdClass, @Cacheable, @EntityListeners, etc.
23

Posting Sample Code

not contain a persistence unit, An entity or IdClass class should implement the java.io.Serializable interface).
7

javax.persistence.MapKey

as IdClass, an instance of the primary key class is used as the key. Default value: "" Since: JPA 1.0
7

javax.persistence.metamodel.MappedSuperclassType

or embedded id; returns false for an idclass. Returns: boolean indicating whether the identifiable
7

hasSingleIdAttribute()

Method javax.persistence.metamodel.IdentifiableType boolean hasSingleIdAttribute() Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id; returns false for an idclass. Returns: boolean indicating whether the identifiable type has a single id attribute Since: JPA 2.0
7

javax.persistence.metamodel.IdentifiableType

. Returns true for a simple id or embedded id; returns false for an idclass. Returns: boolean
7

javax.persistence.metamodel.EntityType

attribute. Returns true for a simple id or embedded id; returns false for an idclass. Returns: boolean

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