Package com.blazebit.persistence.view
Annotation Type PostPersist
@Target(METHOD) @Retention(RUNTIME) public @interface PostPersist
Annotation to mark a method to be executed after a call to
EntityManager.persist(Object)
when flushing
the creatable entity view containing this method via EntityViewManager.save(EntityManager, Object)
.
A method annotated with @PostPersist
may optionally have the following parameters
- An
EntityViewManager
- An
EntityManager
- The entity object. The entity type of the entity view and all super types are allowed.
@PostPersist
and it must return void
.
Super type methods annotated with @PostPersist
are ignored if an entity view defines a @PostPersist
method.- Since:
- 1.4.0
- Author:
- Christian Beikov