|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface IdClass
The IdClass annotation can be used to specify a composite primary key class that is mapped to multiple fields or properties of an entity. The IdClass annotation is applied to an entity class or a mapped superclass.
The names of the fields or properties in the primary key class and the primary key fields or properties of the entity must correspond, and their types must be the same.
The Id annotation must also be applied to the corresponding fields or properties of the entity.
Required Element Summary | |
---|---|
Class |
value
The name of the class that represents a composite of the keys in the entity. |
Element Detail |
---|
public abstract Class value
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |