Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.cayenne.annotation
Annotation Type PreRemove

    @Target(value=METHOD)
    @Retention(value=RUNTIME)
    @Documented
    @Inherited
    public @interface PreRemove

An annotation to place on the entity event listener method to receive `LifecycleEvent.PRE_REMOVE` events.

Since:
  3.1

Optional Element Summary
`java.lang.Class<? extends java.lang.annotation.Annotation>[]` | `entityAnnotations` An array of custom annotation types.
`java.lang.Class<?>[]` | `value` An array of entity classes that a listener method should be associated with.

### value

    public abstract java.lang.Class<?>[] value

  An array of entity classes that a listener method should be associated with.

  Default:
    {}

### entityAnnotations

    public abstract java.lang.Class<? extends java.lang.annotation.Annotation>[] entityAnnotations

  An 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:
    {}

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.