Exemplo n.º 1
0
 @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);
 }
Exemplo n.º 2
0
 @Override
 public void afterTransactionCompletion(org.hibernate.Transaction tx) {
   entities.remove();
 }