|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Persist
Marks a method as a listener for entities that were persisted by a client. This is different than the JPA entity listeners since the annotated method will only be invoked if the persisting was initiated by the client. The listener method must have a single method parameter of a persistent entity type. It may throw Exception in which case the transaction will be rolled back.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||