Annotation Type KeyClass


@Retention(RUNTIME) @Target(TYPE) public @interface KeyClass
Specifies a composite primary key class that is mapped to multiple fields or properties of an EntityType.

The names of the fields or properties in the primary key class and the primary key fields or properties of the EntityType must correspond and their types must be the same.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Serializable>