This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git

commit 9844e5b4e9fea8afc50f1d932f349db7b41915c3
Author: Dan Haywood <[email protected]>
AuthorDate: Sun May 26 22:31:45 2024 +0100

    Updates PetOwner's delete action to fire a specific domain event
---
 .../java/domainapp/modules/petowner/dom/petowner/PetOwner.java    | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
 
b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
index 8ac0b63..1e2ad62 100644
--- 
a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
+++ 
b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
@@ -266,7 +266,13 @@ public class PetOwner implements Comparable<PetOwner>, 
CalendarEventable {
 
 
 
-    @Action(semantics = NON_IDEMPOTENT_ARE_YOU_SURE)
+    public static class DeleteActionDomainEvent
+            extends 
org.apache.causeway.applib.events.domain.ActionDomainEvent<PetOwner> {}
+
+    @Action(
+            semantics = NON_IDEMPOTENT_ARE_YOU_SURE,
+            domainEvent = DeleteActionDomainEvent.class
+    )
     @ActionLayout(
             describedAs = "Deletes this object from the persistent datastore")
     public void delete() {

Reply via email to