Class EntityDeletionUtils
java.lang.Object
ch.tocco.nice2.model.entity.api.util.EntityDeletionUtils
Helper class which allows deletion of entities
The models are ordered in a way to avoid constraint violations:
- the many to one side is deleted first (because the foreign key is on that side)
- many to many: the owning side is deleted first (because the owning side manages the join table)
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteEntities
(Consumer<EntityModel> deleteEntityModelConsumer, Collection<EntityModel> models)
-
Method Details
-
deleteEntities
public static void deleteEntities(Consumer<EntityModel> deleteEntityModelConsumer, Collection<EntityModel> models)
-