/** * Called when we have recognized an attempt to delete a detached entity. * <p/> * This is perfectly valid in Hibernate usage; JPA, however, forbids this. * Thus, this is a hook for HEM to affect this behavior. * * @param event The event. */ protected void performDetachedEntityDeletionCheck(DeleteEvent event) { if ( jpaBootstrap ) { disallowDeletionOfDetached( event ); } // ok in normal Hibernate usage to delete a detached entity; JPA however // forbids it, thus this is a hook for HEM to affect this behavior }
/** * Called when we have recognized an attempt to delete a detached entity. * <p/> * This is perfectly valid in Hibernate usage; JPA, however, forbids this. * Thus, this is a hook for HEM to affect this behavior. * * @param event The event. */ protected void performDetachedEntityDeletionCheck(DeleteEvent event) { if ( jpaBootstrap ) { disallowDeletionOfDetached( event ); } // ok in normal Hibernate usage to delete a detached entity; JPA however // forbids it, thus this is a hook for HEM to affect this behavior }