public interface BeforeInsertEntityListener<T extends Entity>
| Modifier and Type | Method and Description |
|---|---|
void |
onBeforeInsert(T entity,
EntityManager entityManager)
Executes before the object has been inserted into DB.
|
void onBeforeInsert(T entity, EntityManager entityManager)
entity - inserted entity instanceentityManager - EntityManager that owns the entity instance