You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2026/04/09 10:57:16 UTC

(causeway-app-petclinic) 03/04: updates PetOwner module to delete all Pets.

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

danhaywood pushed a commit to tag tags/3.6.0/04-01-pet-entity-key-properties
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git

commit 149a6797beb689a6f954118634066ed4c28da657
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 13:04:07 2024 +0100

    updates PetOwner module to delete all Pets.
---
 .../src/main/java/domainapp/modules/petowner/PetOwnerModule.java        | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/PetOwnerModule.java b/module-petowner/src/main/java/domainapp/modules/petowner/PetOwnerModule.java
index e6166bb..eab51db 100644
--- a/module-petowner/src/main/java/domainapp/modules/petowner/PetOwnerModule.java
+++ b/module-petowner/src/main/java/domainapp/modules/petowner/PetOwnerModule.java
@@ -14,6 +14,7 @@
 import org.apache.causeway.testing.fixtures.applib.modules.ModuleWithFixtures;
 import org.apache.causeway.testing.fixtures.applib.teardown.jpa.TeardownFixtureJpaAbstract;
 
+import domainapp.modules.petowner.dom.pet.Pet;
 import domainapp.modules.petowner.dom.petowner.PetOwner;
 
 @Configuration
@@ -36,6 +37,7 @@ public FixtureScript getTeardownFixture() {
         return new TeardownFixtureJpaAbstract() {
             @Override
             protected void execute(ExecutionContext executionContext) {
+                deleteFrom(Pet.class);
                 deleteFrom(PetOwner.class);
             }
         };