About @IdClass

manual

JPA Primary Key

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... is an entity. See JavaDoc Reference Page... @IdClass javax.persistence.IdClass JPA annotation Specifies a ... class that is attached to the entity class using the @IdClass javax.persistence.IdClass JPA annotation Specifies ...

 
api-jpa

JPA Annotations for Classes

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

 
api-jpa

javax.persistence.IdClass

Specifies a composite primary key class that is mapped to multiple fields or properties of the entity.(Annotation of JPA)

 
forum_thread

EmbeddedId with Generated field value

@Entity public class A { @EmbeddedId private Id id; } @Embeddable public class Id { @Generated private long id; private String zone; } How can I get the field Id.id auto-incremented?   #1 2012-12-06 17:29 I know the following 2 ways to declare a composite Primary key: ********* Solution 1 ********* @ ...

 
forum_thread

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

I have two classes a Container type class and another class that is 'contained' by that class. The contained class, CompoundKeyMapItem, represents an alternate implementation of an object held in a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works fine on Eclipselink. However when I try and run this in ObjectDb I get the following error; ... Primary Key. The contained class therefore uses an @IdClass. This all works fine on Eclipselink. However when I try and ...

 
forum_thread

Object explorer cannot open odb file. ObjectDB many-to-many relationship

I created a data model to test many-to-many relationship with a link table as following (full code in attachement) #1 2011-11-24 15:38 I created a data model to test many-to-many relationship with a link table as following (full code in attachement ...

 
issue

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

Hello everyone ! I have just launched the ObjectDb Doctor for testing purposes. But while inspecting my base, the Doctor throws me a strange error : [ObjectDB 2.4.6] Invalid ID class com.test.Video$VideoId for type com.test.Video (Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection) (error 316) It seems that the Doctor can't find the SourceId, that is a part of my primary key. There is a description of my Video bean :   Bug Version: 2.4.6 Priority: Normal Status: Active Replies: 2 Type:  Bug ...

 
api-jpa

MapKey.name

(Optional) The name of the persistent field or property of the associated entity that is used as the map key.(Annotation Element of javax.persistence.MapKey)

 
api-jpa

javax.persistence.MapKey

Specifies the map key for associations of type java.util.Map when the map key is itself the primary key or a persistent field or property of the entity that is the value of the map.(Annotation of JPA)

 
api-jpa

hasSingleIdAttribute()

Whether the identifiable type has a single id attribute.(Method of javax.persistence.metamodel.IdentifiableType)