Package org.apache.cayenne.annotation
Annotation Type PrePersist
@Target(METHOD) @Retention(RUNTIME) @Documented @Inherited public @interface PrePersist
An annotation to place on the entity event listener method to receive
 
LifecycleEvent.PRE_PERSIST events.- Since:
- 3.1
- 
Optional Element SummaryOptional Elements Modifier and Type Optional Element Description Class<? extends Annotation>[]entityAnnotationsAn array of custom annotation types.Class<?>[]valueAn array of entity classes that a listener method should be associated with.
- 
Element Details- 
valueClass<?>[] valueAn array of entity classes that a listener method should be associated with.- Default:
- {}
 
- 
entityAnnotationsClass<? extends Annotation>[] entityAnnotationsAn array of custom annotation types. When such annotation is used on an entity class, such entity will be associated with the annotated listener method.- Default:
- {}
 
 
-