Package dev.morphia.annotations
Annotation Type EntityListeners
-
@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) public @interface EntityListeners
Specifies other classes to participate in the @Entity's lifecycle- Author:
- Scott Hernandez
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>[]
value
Deprecated.In the next version, this will be restricted to subclasses ofEntityListener
.
-
-
-
Element Detail
-
value
@Deprecated(since="2.4.0") Class<?>[] value
Deprecated.In the next version, this will be restricted to subclasses ofEntityListener
. Migrating your listeners to be subclasses now will prevent any compilation issues in the future.- Returns:
- The listeners to use for this entity
- Default:
- {}
-
-