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 void
onEntityChange
(Object entity, EntityOp type, AttributeChanges changes) Invoked before entity commit.default void
Invoked 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 forCREATE
andDELETE
change types
-
onFlush
Invoked before committing to data store.- Parameters:
storeName
- name of data store
-