This is an automated email from the ASF dual-hosted git repository. danhaywood pushed a commit to branch v2 in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit 9f43e2d971b8df1430d9e881d694321feadc16b5 Author: Dan Haywood <[email protected]> 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.fixturescripts.FixtureScript; 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 class PetOwnerModule implements ModuleWithFixtures { return new TeardownFixtureJpaAbstract() { @Override protected void execute(ExecutionContext executionContext) { + deleteFrom(Pet.class); deleteFrom(PetOwner.class); } };
