...have no idea why - seems i have the signature right... ...onSave() is called just fine. but when i successfully delete an object like:
Session session = HibernateUtil.currentSession();
Transaction tx = session.beginTransaction();
int deleted = session.createQuery("Delete net.sf.ussrp.bus.Report where id = "+ id) .executeUpdate();
tx.commit();
HibernateUtil.closeSession();
...onDelete() is not called in my interceptor, like:
public class UssrpInterceptor extends EmptyInterceptor {
...
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException {}
...
}
|