@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.
|
protected void |
setCategoryEntityType(CategoryAttribute entity) |
public void onBeforeInsert(CategoryAttribute entity, EntityManager entityManager)
BeforeInsertEntityListeneronBeforeInsert in interface BeforeInsertEntityListener<CategoryAttribute>entity - inserted entity instanceentityManager - EntityManager that owns the entity instancepublic void onBeforeUpdate(CategoryAttribute entity, EntityManager entityManager)
BeforeUpdateEntityListeneronBeforeUpdate in interface BeforeUpdateEntityListener<CategoryAttribute>entity - updated entity instanceentityManager - EntityManager that owns the entity instanceprotected void setCategoryEntityType(CategoryAttribute entity)