Internal Website Search

1-10 of 18 resultsRefresh

javax.persistence.IdClass

Annotation IdClass Example: @IdClass(com.acme.EmployeePK.class ... ="name">IdClass/value" title="Annotation Element of javax.persistence.IdClass

IdClass.value

Annotation Element IdClass" title="Annotation in javax.persistence">javax.persistence.IdClassClass value

JPA Primary Key

IdClass">@IdClass(ProjectId.class) public class Project ... a special ID class that is attached to the entity class using the IdClass">@IdClass annotation. The ID class reflects the primary key fields and its objects

Posting Sample Code

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

JPA Annotations for Classes

>IdClass"> ID

javax.persistence.metamodel.EntityType

JPA 2 JavaDoc Reference Documentation - Instances of the type EntityType represent entity types.

hasSingleIdAttribute()

has a single id attribute. Returns true for a simple id or embedded id; returns false for an idclass

javax.persistence.metamodel.MappedSuperclassType

JPA 2 JavaDoc Reference Documentation - Instances of the type MappedSuperclassType represent mapped superclass types.

MapKey.name

and is mapped as IdClass, an instance of the primary key class is used as the key.

javax.persistence.MapKey

. If the primary key is a composite primary key and is mapped as IdClass, an instance