public interface AfterInsertEntityListener<T extends Entity>
Modifier and Type | Method and Description |
---|---|
void |
onAfterInsert(T entity,
java.sql.Connection connection)
Executes after the object has been inserted into DB.
|
void onAfterInsert(T entity, java.sql.Connection connection)
Modification of the entity state or using EntityManager
is impossible here. Use connection
if you
need to make changes in the database.
entity
- inserted entityconnection
- JDBC connection to the database with the inserted entity