JPA Annotation

EntityListeners

Target: TYPE
Implemented Interfaces:
Annotation

Specifies the callback listener classes to be used for an entity or mapped superclass. This annotation may be applied to an entity class or mapped superclass.
Since:
JPA 1.0
The JPA Lifecycle Events article explains how to use EntityListeners.

Public Annotation Attributes

Class[] value default null
The callback listener classes
Since:
JPA 1.0