Top Description Methods
org.eclipse.persistence.annotations

public @Interface InstantiationCopyPolicy

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

An InstantiationCopyPolicy is used to set an org.eclipse.persistence.descriptors.copying.InstantiationCopyPolicy on an Entity. InstantiationCopyPolicy is the default CopyPolicy if weaving is not used, or if property access is used. A special CloneCopyPolicy is used if weaving and field access is used. An InstantiationCopyPolicy should be specified on an Entity, MappedSuperclass or Embeddable.

Example:


@Entity
@InstantiationCopyPolicy
public class Employee {
Author
tware
See Also
org.eclipse.persistence.descriptors.copying.InstantiationCopyPolicy, org.eclipse.persistence.annotations.CloneCopyPolicy, org.eclipse.persistence.annotations.CopyPolicy

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString