@Singleton public class UUIDGeneratingEntityEventListener extends AutoPopulatedEntityEventListener
NOOP
Constructor and Description |
---|
UUIDGeneratingEntityEventListener() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getEventTypes() |
protected java.util.function.Predicate<RuntimePersistentProperty<java.lang.Object>> |
getPropertyPredicate() |
boolean |
prePersist(EntityEventContext<java.lang.Object> context)
A pre-persist hook.
|
getApplicableProperties, supports
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postLoad, postPersist, postRemove, postUpdate, preQuery, preRemove, preUpdate
@NonNull protected final java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getEventTypes()
getEventTypes
in class AutoPopulatedEntityEventListener
@NonNull protected java.util.function.Predicate<RuntimePersistentProperty<java.lang.Object>> getPropertyPredicate()
getPropertyPredicate
in class AutoPopulatedEntityEventListener
public boolean prePersist(@NonNull EntityEventContext<java.lang.Object> context)
EntityEventListener
context
- The context object