Module eclipselink

Annotation Interface CopyPolicy


@Target(TYPE) @Retention(RUNTIME) public @interface CopyPolicy
A CopyPolicy is used to set an CopyPolicy on an Entity. It is required that a class that implements CopyPolicy must be specified as the argument.

A CopyPolicy should be specified on an Entity, MappedSuperclass or Embeddable.

For instance:

 @Entity
 @CopyPolicy("example.MyCopyPolicy")
See Also:
Author:
tware
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    This defines the class of the copy policy.
  • Element Details

    • value

      Class<?> value
      This defines the class of the copy policy. It must specify a class that implements CopyPolicy