Class CascadingDeleteEntityListenerContribution

java.lang.Object
ch.tocco.nice2.entityoperation.api.CascadingDeleteEntityListenerContribution

public class CascadingDeleteEntityListenerContribution extends Object
example: delete all related task_history entities if a task entity gets deleted

 @Bean
 public CascadingDeleteEntityListenerContribution principalSessionCascadingDeleteContribution() {
     return new CascadingDeleteEntityListenerContribution("Principal", "relSession");
 }
 
  • Constructor Details

    • CascadingDeleteEntityListenerContribution

      public CascadingDeleteEntityListenerContribution(String entityName, String relationsToDelete)
    • CascadingDeleteEntityListenerContribution

      public CascadingDeleteEntityListenerContribution(String entityName, String relationsToDelete, @Nullable @Nullable String checkQuery, @Nullable @Nullable String clientQuestionKey)
  • Method Details

    • getEntityName

      public String getEntityName()
    • getRelationsToDelete

      public String getRelationsToDelete()
    • getCheckQuery

      public String getCheckQuery()
    • getClientQuestionKey

      public String getClientQuestionKey()