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 2024/05/26 12:24:28 UTC
(causeway-app-petclinic) 02/11: updates PetOwner module to delete all Pets.
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 <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.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);
}
};