Package io.jmix.data.impl
Interface JpaLifecycleListener
- All Known Implementing Classes:
EntityLogImpl
public interface JpaLifecycleListener
Beans implementing this interface are notified by JPA implementation on their
specific events.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonEntityChange(Object entity, EntityOp type, AttributeChanges changes) Invoked before entity commit.default voidInvoked before committing to data store.
-
Method Details
-
onEntityChange
Invoked before entity commit.- Parameters:
entity- entitytype- entity change typechanges- object describing changes in the entity attributes - null forCREATEandDELETEchange types
-
onFlush
Invoked before committing to data store.- Parameters:
storeName- name of data store
-