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/25 12:48:33 UTC
(causeway-app-petclinic) 18/24: Updates PetOwner_persona to _not_ wrap PetOwners domain service
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 ae001a2066cf81be103097a6a5b661731773f2df
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Fri May 24 09:13:08 2024 +0100
Updates PetOwner_persona to _not_ wrap PetOwners domain service
... to avoid permissions issue when running initial fixtures using the built-in "__system" user.
---
.../java/domainapp/modules/petowner/fixture/PetOwner_persona.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/fixture/PetOwner_persona.java b/module-petowner/src/main/java/domainapp/modules/petowner/fixture/PetOwner_persona.java
index ecd1c68..6fc2102 100644
--- a/module-petowner/src/main/java/domainapp/modules/petowner/fixture/PetOwner_persona.java
+++ b/module-petowner/src/main/java/domainapp/modules/petowner/fixture/PetOwner_persona.java
@@ -2,7 +2,6 @@ package domainapp.modules.petowner.fixture;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
-import java.time.LocalDate;
import javax.inject.Inject;
@@ -16,8 +15,6 @@ import org.apache.causeway.testing.fixtures.applib.personas.BuilderScriptWithRes
import org.apache.causeway.testing.fixtures.applib.personas.Persona;
import org.apache.causeway.testing.fixtures.applib.setup.PersonaEnumPersistAll;
-import domainapp.modules.petowner.dom.petowner.PetOwners;
-
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
@@ -26,6 +23,7 @@ import lombok.val;
import lombok.experimental.Accessors;
import domainapp.modules.petowner.dom.petowner.PetOwner;
+import domainapp.modules.petowner.dom.petowner.PetOwners;
@RequiredArgsConstructor
public enum PetOwner_persona
@@ -64,7 +62,7 @@ implements Persona<PetOwner, PetOwner_persona.Builder> {
@Override
protected PetOwner buildResult(final ExecutionContext ec) {
- val petOwner = wrap(petOwners).create(persona.name);
+ val petOwner = petOwners.create(persona.name);
if (persona.contentFileName != null) {
val bytes = toBytes(persona.contentFileName);