Class CascadingDeleteEntityListenerContribution
java.lang.Object
ch.tocco.nice2.entityoperation.api.CascadingDeleteEntityListenerContribution
example:
delete all related task_history entities if a task entity gets deleted
@Bean
public CascadingDeleteEntityListenerContribution principalSessionCascadingDeleteContribution() {
return new CascadingDeleteEntityListenerContribution("Principal", "relSession");
}
-
Constructor Summary
ConstructorDescriptionCascadingDeleteEntityListenerContribution
(String entityName, String relationsToDelete) CascadingDeleteEntityListenerContribution
(String entityName, String relationsToDelete, @Nullable String checkQuery, @Nullable String clientQuestionKey) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
CascadingDeleteEntityListenerContribution
-
CascadingDeleteEntityListenerContribution
-
-
Method Details
-
getEntityName
-
getRelationsToDelete
-
getCheckQuery
-
getClientQuestionKey
-