@Component(value="report_CategoryAttributeListener") public class CategoryAttributeListener extends java.lang.Object implements BeforeInsertEntityListener<CategoryAttribute>, BeforeUpdateEntityListener<CategoryAttribute>
Constructor and Description |
---|
CategoryAttributeListener() |
Modifier and Type | Method and Description |
---|---|
void |
onBeforeInsert(CategoryAttribute entity,
EntityManager entityManager)
Executes before the object has been inserted into DB.
|
void |
onBeforeUpdate(CategoryAttribute entity,
EntityManager entityManager)
Executes before the object has been updated in DB.
|
public void onBeforeInsert(CategoryAttribute entity, EntityManager entityManager)
BeforeInsertEntityListener
onBeforeInsert
in interface BeforeInsertEntityListener<CategoryAttribute>
entity
- inserted entity instanceentityManager
- EntityManager that owns the entity instancepublic void onBeforeUpdate(CategoryAttribute entity, EntityManager entityManager)
BeforeUpdateEntityListener
onBeforeUpdate
in interface BeforeUpdateEntityListener<CategoryAttribute>
entity
- updated entity instanceentityManager
- EntityManager that owns the entity instance