@Override public boolean onSave( Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { entities.set(entity); return super.onSave(entity, id, state, propertyNames, types); }
@Override public void afterTransactionCompletion(org.hibernate.Transaction tx) { entities.remove(); }