IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.annotations
Annotation Type IdClass


@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.

Since:
WAS XD 6.1

Required Element Summary
 Class value
          The name of the class that represents a composite of the keys in the entity.
 

Element Detail

value

public abstract Class value
The name of the class that represents a composite of the keys in the entity.

Returns:
the composite key class.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.