#1833 - When cascade persisting twice to ElementCollection ... we get do extra delete and inserts

This commit is contained in:
rob bygrave
2019-10-08 13:25:18 +13:00
parent 0e7607bb27
commit fb5a69adea
10 changed files with 148 additions and 47 deletions
@@ -75,9 +75,10 @@ public interface SpiTransaction extends Transaction {
boolean isRegisteredDeleteBean(Integer hash);
/**
* Unregister the persisted bean.
* Unregister the persisted beans. Expected after persisting top level beans
* and hence including all beans that were cascade persisted.
*/
void unregisterBean(Object bean);
void unregisterBeans();
/**
* Return true if this is a bean that has already been persisted in the