About ExcludeDefaultListeners

1-2 of 2Refresh
JPA Doc
157

javax.persistence.ExcludeDefaultListeners

javax.persistence Annotation ExcludeDefaultListeners Target: Classes Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: JPA 1.0 Learn how to define and use entity listeners in Chapter 3 of the ObjectDB/JPA
Manual
38

JPA Lifecycle Events

default to all the entity classes. The @ExcludeDefaultListeners annotation can be used to exclude ... @ExcludeDefaultListeners public class NoDefaultListenersForThisEntity { } @Entity public class