@Override
public boolean onSave( Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
{
if( entity instanceof AbstractEntity)
{
AbstractEntity baseEntity = (AbstractEntity) entity;
if( baseEntity.getCreated() == null)
{
baseEntity.setCreated(new Date());
}
baseEntity.setModified(new Date());
}
return super.onSave(entity, id, state, propertyNames, types);
}