2.5.1.5. EntityListeners
An entity may list its lifecycle event listeners in the EntityListeners annotation.
This value of this annotation is an array of the listener Class es for the entity.
The equivalent XML element is entity-listeners.
For more details on entity listeners, see Lifecycle Callbacks.