4041424344454647
@Override @SuppressWarnings("unchecked") public void onPostInsert(PostInsertEvent event) { Auditable entity = (Auditable) event.getEntity(); AuditLogType type = entity.getAuditTypeForInsert(); audit(entity, type); }
4849505152535455
@Override @SuppressWarnings("unchecked") public void onPostUpdate(PostUpdateEvent event) { Auditable entity = (Auditable) event.getEntity(); AuditLogType type = entity.getAuditTypeForUpdate(); audit(entity, type); }