Class DeleteEntityHelper

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.DeleteEntityHelper

public abstract class DeleteEntityHelper extends Object
  • Method Details

    • handleNullableReferences

      public static void handleNullableReferences(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.
    • removeFromLoadedCollections

      public static void removeFromLoadedCollections(org.hibernate.engine.spi.SessionImplementor session, List<Entity> entities)
      Removes deleted entities from all currently loaded collections of a given Session.