org.apache.cayenne.annotation

## Annotation Type PostAdd

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

  An annotation to place on the entity event listener method to receive `LifecycleEvent.POST_ADD` events.
  Since:
    3.1

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `Class<? extends Annotation>[]` | `entityAnnotations` An array of custom annotation types.
    `Class<?>[]` | `value` An array of entity classes that a listener method should be associated with.

- - ### Element Detail

    - #### value

          public abstract Class<?>[] value

      An array of entity classes that a listener method should be associated with.
      Default:
        {}

  - - #### entityAnnotations

          public abstract Class<? extends 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:
        {}

Copyright © 2001–2021 Apache Cayenne. All rights reserved.