Class DeleteEntityHelper
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.DeleteEntityHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleNullableReferences(DataModel dataModel, org.hibernate.Session session, List<Entity> entities) For each one to many association of the given entity model where the target is optional, a query is executed which sets the reference to null.static voidremoveFromLoadedCollections(org.hibernate.engine.spi.SessionImplementor session, List<Entity> entities) Removes deleted entities from all currently loaded collections of a givenSession.
-
Method Details
-
handleNullableReferences
-
removeFromLoadedCollections
-