Annotation Type PostCommit


@Target(METHOD) @Retention(RUNTIME) public @interface PostCommit
Annotation to mark a method to be executed after a transaction that flushes the type containing this method was successfully committed. A method annotated with @PostCommit may optionally have the following parameters There may only be one method in a class annotated with @PostCommit and it must return void. Super type methods annotated with @PostCommit are ignored if an entity view defines a @PostCommit method.
Since:
1.4.0
Author:
Christian Beikov
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The view transitions to handle by this listener.
  • Element Details

    • transitions

      ViewTransition[] transitions
      The view transitions to handle by this listener.
      Returns:
      the view transitions
      Default:
      {PERSIST, UPDATE, REMOVE}