Package com.blazebit.persistence.view
Annotation Type PostRollback
@Target(METHOD) @Retention(RUNTIME) public @interface PostRollback
Annotation to mark a method to be executed after a transaction that flushes the type containing this method was rolled back.
A method annotated with
@PostRollback
may optionally have the following parameters
- An
EntityViewManager
- An
EntityManager
- A
ViewTransition
@PostRollback
and it must return void
.
Super type methods annotated with @PostRollback
are ignored if an entity view defines a @PostRollback
method.- Since:
- 1.4.0
- Author:
- Christian Beikov
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ViewTransition[]
transitions
The view transitions to handle by this listener.
-
Element Details
-
transitions
ViewTransition[] transitionsThe view transitions to handle by this listener.- Returns:
- the view transitions
- Default:
- {PERSIST, UPDATE, REMOVE}
-