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/07/22 21:45:32 UTC
(causeway-app-petclinic) tag tags/3.1.0/09-02-adds-visit-fixture updated (cce9357 -> fe881dd)
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a change to tag tags/3.1.0/09-02-adds-visit-fixture
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
*** WARNING: tag tags/3.1.0/09-02-adds-visit-fixture was modified! ***
from cce9357 (commit)
to fe881dd (commit)
discard cce9357 updates javax to jakarta
discard 55c5b78 updates DomainAppDemo to create visits as well as pet owners/pets
discard 174c4d6 adds Visit_persona
discard 2124205 updates javax to jakarta
discard b9c66eb adds sad case (cannot book visit in the past) as integ test
discard 278080e adds happy case integ test for bookVisit
discard 8d6920c adds Bootstrap_IntegTest to check setup
discard 0911fb1 adds application-test.yml props
discard d54bce3 adds VisitModuleIntegTestAbstract
discard 86ffd8f adds maven dependencies on causeway integtestsupport-applib
discard 25255c8 updates javax to jakarta
discard 436efcb updates title of HomePageViewModel
discard ddc3bf7 adds HomePageViewModel_bookVisit convenience action
discard 12c756e adds VisitRepository#findByPetAndVisitAt
discard 9b5c88b adds columnOrder for HomePageViewModel#futureVisits
discard a6a7fca updates layout for HomePageViewModel
discard ecfec82 updates HomePageViewModel, adds futureVisits collection
discard ad89f3f updates VisitRepository, adds findByVisitAfter
discard eb05412 updates javax to jakarta
discard eaf6624 adds a subscriber to veto deletion if there are any visits for the owner
discard 8687cd5 Updates PetOwner's delete action to fire a specific domain event
discard 9f81e8a adds unit test for PetOwner_bookVisit
discard 5b87cc5 updates visit module's pom.xml with dependency on unittestsupport-applib
discard 9ecafcb updates javax to jakarta
discard 40047e6 updates PetOwner's layout, indicating where to render the 'visits' coll.
discard f03f2ae adds 'visits' mixin collection, to view visits of pets of a pet owner.
discard 9a12b02 adds PetOwner_bookVisit mixin action, to allow visits to be booked
discard 32223c7 adds VisitRepository
discard 831dc20 makes constructor public
discard 5264e25 updates javax to jakarta
discard 11821f0 adds Visit.png
discard c6f26d3 adds Visit.columnOrder.txt
discard 371f088 adds Visit.layout.xml
discard 168ebe5 adds Visit entity
discard 2e7310d force version of module-visit..
discard dba0857 updates version of module from 2.0.0 to 3.0.0
discard d958e2e adds spring import from application module to visit module
discard 4ee1e08 adds maven dependency from application module to visit module
discard 3c8d055 adds Spring import from visit module to petowner module
discard 2093f5b adds maven dependency from visit module to petowner module
discard 2fbd760 Adds 'visit' namespace to existing petowners security role.
discard f4f2315 updates application.properties to set up 'visit' DB schema
discard d715272 adds VisitModule (spring configuration) defining the visit module
discard f5a7bd2 updates top-level pom.xml to include new visit module as child module
discard 9a1e9d6 adds pom.xml for visit module itself
discard ad7a390 defines module-visit as module in top level pom.xml
discard 8958f0f adds iconname to Pet
discard 9d6d5f7 adds Pet-xxx.png for each species
discard d54ea5c updates PetOwner#pets.columnOrder.txt with new properties
discard e069145 updates Pet.columnOrder.txt with new properties
discard fde8107 adds notes property for Pet
discard 71ae9da updates PetOwner_persona fixture, to choose species at random
discard 8a95384 updates addPet, to set the species of each
discard 762d629 adds a PetSpecies property to Pet
discard 69b0566 adds PetSpecies enum
discard b8b2f4e adds validation to check that each owner's pet has a different name
discard 4414c0c updates PetOwner_persona to add pets for each owner
discard 81acf33 adds 'removePet' action
discard 85621e1 adds 'addPet' action
discard c9c19f9 adds .columnOrder.txt for pets collection in PetOwner
discard d914a67 positions 'pets' collection in layout.xml
discard 7d0ca38 updates javax to jakarta
discard a10369c adds Pet.columnOrder.txt
discard 96f4f51 adds icon .png for Pet
discard a03dc6d adds Pet.layout.xml
discard 6b4f41b uses the name of the pet as its title
discard eba33d4 updates javax to jakarta
discard 5a8e7e3 updates PetOwner module to delete all Pets.
discard aa6a17a adds Pet entity
discard 49bfbd9 adds PetName meta-annotation
discard 251cecb replaces PetOwner.png
discard 25d0ae4 organizes imports
discard 1e54c0d associates 'delete' action with 'identity' fieldset
discard ee8f015 associates 'updateAttachment' action with 'name' property using .layout.xml
discard 3519780 associates 'updateName' action with 'name' property using .layout.xml
discard bf42b3d specifies positioning of framework-provided props in metadata fieldset
discard 82e146c associates version property with its fieldset using .layout.xml
discard 92965d8 associates attachment property with its fieldset using .layout.xml
discard e7363e2 associates daysSinceLastVisit property with its fieldset using .layout.xml
discard 9e39124 associates lastVisit property with its fieldset using .layout.xml
discard 867ecd8 associates notes property with its fieldset using .layout.xml
discard 27d9b1d associates emailAddress property with its fieldset using .layout.xml
discard 59c16f8 associates telephoneNumber property with its fieldset using .layout.xml
discard 4d0cfa0 associates knownAs property with its fieldset using .layout.xml
discard 433cdcf associates name property with its fieldset using .layout.xml
discard 0227db7 updates javax to jakarta
discard 5aa5f26 updates javax to jakarta
discard a9f6148 updates PetOwners#create to use new value type
discard 3e2f4a1 updates PetOwner#emailAddress to use new value type
discard 0516c1c adds EmailAddressValueSemantics
discard 21fd52c Adds EmailAddress value type
discard 7d182e3 Updates ActionLayout#describedAs text, as constant has moved to Name meta-annotation
discard ca682e4 Removes validation for PetOwner#updateName
discard 8eff0eb Adds a mustSatisfy Specification to Name meta-annotation
discard a08c0df Updates PhoneNumber meta-annotation, adds regex validation
discard 65fae30 Annotates telephoneNumber property and param with meta-annotation
discard 0242d00 Defines PhoneNumber meta-annotation
discard eb9c2eb Updates .columnOrder.txt for new property
discard 6773127 adds PetOwner#getDaysSinceLastVisit derived property
discard 064a284 Injects ClockService into PetOwner
discard 60d0ccf Resets prompt styles back to their defaults
discard 21fe608 changes the default prompt style
discard 3a5a000 Comments out promptStyle for PetOwner#updateName
discard b09ef24 Comments out promptStyle for PetOwners#create
discard 5f4f03e Updates PetOwner_persona builder also
discard d135591 Updates PetOwners#create to specify additional details.
discard 14a3db8 adds HomePageViewModel#petOwners.colunmOrder.txt
discard 14a3eff renames 'getObjects' collection of HomePageViewModel to 'getPetOwners'
discard 96187e7 updates title of HomePageViewModel
discard 63a3d92 Updates HomePageViewModel to list PetOwners
discard a349af9 Updates PetOwner_persona to _not_ wrap PetOwners domain service
discard 4ec6a6a updates IntelliJ run configuration to run with 'dev' spring profile
discard e57f4cb adds application-dev.yml to run fixture automatically on startup
discard 9a3c4b4 Updates .columnOrder.txt of PetOwners to show additional properties
discard ea35748 Adds 'telephoneNumber' and 'emailAddress' to 'PetOwner'
discard 71eabb9 updates persona to create a more realistic 'lastVisit' date
discard 9dfe639 renames PetOwner's lastCheckedIn property to lastVisit
discard fd09b96 defines PetOwner's title using title() method rather than @Title annot.
discard f83ba50 Extends PetOwner_persona to set up a 'knownAs' alias
discard 931bdf7 Updates DomainAppDemo fixture script to create pet owners rather than
discard 97a3976 updates PetOwner_persona and adds .pdf for each.
discard a68ef93 adds references to PetOwners domain service in the menubars layout
discard cd13453 adds new PetOwnerModuleSuperuserRole, makes sven user a member
discard 5d38de7 references petowner module in the ApplicatoinModule
discard 4609ced renames SimpleApp to PetClinicApp
discard a8f0e8b converts javax imports to jakarta
discard ceabc89 updates new pom.xml to 3.0.0
discard 1c7beda Updates application.properties to ensure 'petowner' schema is created
discard e32a5a8 updates the namespace of PetOwner module
discard c76d7a4 copies simple module to petowner module
discard 84ab8d8 adds module-petowner module
discard 528c1b1 more on recreate script
discard bf5abac updates pom.xml files to 3.1.0
discard 1d48fe4 adds scripts to help generate new tags
add 37bcedb updates tagger.sh
add ef56989 more on recreate script
add fa9a264 adds module-petowner module
add 8f5d078 copies simple module to petowner module
add 342483d updates the namespace of PetOwner module
add 2f91b2d Updates application.properties to ensure 'petowner' schema is created
add fb9f64a updates new pom.xml to 3.0.0
add 7a3c8b4 converts javax imports to jakarta
add e60c6c8 renames SimpleApp to PetClinicApp
add 330c189 references petowner module in the ApplicatoinModule
add fbd6d95 adds new PetOwnerModuleSuperuserRole, makes sven user a member
add 1f7a1e7 adds references to PetOwners domain service in the menubars layout
add 08d73e2 updates PetOwner_persona and adds .pdf for each.
add a88f972 Updates DomainAppDemo fixture script to create pet owners rather than
add ba167d0 Extends PetOwner_persona to set up a 'knownAs' alias
add effa238 defines PetOwner's title using title() method rather than @Title annot.
add cbd7a89 renames PetOwner's lastCheckedIn property to lastVisit
add 82ad473 updates persona to create a more realistic 'lastVisit' date
add 44582b6 Adds 'telephoneNumber' and 'emailAddress' to 'PetOwner'
add 7272815 Updates .columnOrder.txt of PetOwners to show additional properties
add 46a75c2 adds application-dev.yml to run fixture automatically on startup
add e6572b4 updates IntelliJ run configuration to run with 'dev' spring profile
add 2c9dd8f Updates PetOwner_persona to _not_ wrap PetOwners domain service
add 90e35f2 Updates HomePageViewModel to list PetOwners
add ecb441b updates title of HomePageViewModel
add ba94d6d renames 'getObjects' collection of HomePageViewModel to 'getPetOwners'
add 4441a53 adds HomePageViewModel#petOwners.colunmOrder.txt
add 09b61c0 Updates PetOwners#create to specify additional details.
add d005d10 Updates PetOwner_persona builder also
add 4ff2e42 Comments out promptStyle for PetOwners#create
add 125d4ea Comments out promptStyle for PetOwner#updateName
add 41ab2dd changes the default prompt style
add bf2416b Resets prompt styles back to their defaults
add d077a06 Injects ClockService into PetOwner
add 51f9a8a adds PetOwner#getDaysSinceLastVisit derived property
add 6e14ae7 Updates .columnOrder.txt for new property
add cc367c2 Defines PhoneNumber meta-annotation
add faf1ea2 Annotates telephoneNumber property and param with meta-annotation
add 7d7cd0d Updates PhoneNumber meta-annotation, adds regex validation
add 64d5af2 Adds a mustSatisfy Specification to Name meta-annotation
add 395cf4c Removes validation for PetOwner#updateName
add a1a26ae Updates ActionLayout#describedAs text, as constant has moved to Name meta-annotation
add 60eeba2 Adds EmailAddress value type
add effaccf adds EmailAddressValueSemantics
add 2d59324 updates PetOwner#emailAddress to use new value type
add 13a6774 updates PetOwners#create to use new value type
add e37f99b updates javax to jakarta
add 4c69ea7 updates javax to jakarta
add b05f908 associates name property with its fieldset using .layout.xml
add 0ee1127 associates knownAs property with its fieldset using .layout.xml
add 630d5a9 associates telephoneNumber property with its fieldset using .layout.xml
add 8697b8b associates emailAddress property with its fieldset using .layout.xml
add 43fd762 associates notes property with its fieldset using .layout.xml
add 853a8ba associates lastVisit property with its fieldset using .layout.xml
add 5586b36 associates daysSinceLastVisit property with its fieldset using .layout.xml
add 476a528 associates attachment property with its fieldset using .layout.xml
add 18d4dd6 associates version property with its fieldset using .layout.xml
add 3cf12b6 specifies positioning of framework-provided props in metadata fieldset
add 331be9d associates 'updateName' action with 'name' property using .layout.xml
add abe5622 associates 'updateAttachment' action with 'name' property using .layout.xml
add 6961e22 associates 'delete' action with 'identity' fieldset
add 590eb8e organizes imports
add 3eae4c9 replaces PetOwner.png
add 887e0bc adds PetName meta-annotation
add e7ce6a5 adds Pet entity
add 36d5dc2 updates PetOwner module to delete all Pets.
add 6de5f7f updates javax to jakarta
add 68d249a uses the name of the pet as its title
add 4bb1d51 adds Pet.layout.xml
add 5586bd2 adds icon .png for Pet
add 95c732c adds Pet.columnOrder.txt
add 9d33994 updates javax to jakarta
add 5e80754 positions 'pets' collection in layout.xml
add fbdd305 adds .columnOrder.txt for pets collection in PetOwner
add 798c462 adds 'addPet' action
add fd5aebb adds 'removePet' action
add 3b5e34e updates PetOwner_persona to add pets for each owner
add 4b94bae adds validation to check that each owner's pet has a different name
add 1c48f84 adds PetSpecies enum
add bffee57 adds a PetSpecies property to Pet
add 131819e updates addPet, to set the species of each
add 15772ab updates PetOwner_persona fixture, to choose species at random
add 9e1fe39 adds notes property for Pet
add 265a219 updates Pet.columnOrder.txt with new properties
add 6a07feb updates PetOwner#pets.columnOrder.txt with new properties
add 8fc45e1 adds Pet-xxx.png for each species
add 6cf5a1c adds iconname to Pet
add b80572d defines module-visit as module in top level pom.xml
add d3b3c55 adds pom.xml for visit module itself
add 635baac updates top-level pom.xml to include new visit module as child module
add 65c8d93 adds VisitModule (spring configuration) defining the visit module
add 9cb5ab8 updates application.properties to set up 'visit' DB schema
add b6952cf Adds 'visit' namespace to existing petowners security role.
add 9e5662d adds maven dependency from visit module to petowner module
add 8d1ca8b adds Spring import from visit module to petowner module
add 0e551d0 adds maven dependency from application module to visit module
add a446432 adds spring import from application module to visit module
add fb971d6 updates version of module from 2.0.0 to 3.0.0
add 553fd1c force version of module-visit..
add c56636e adds Visit entity
add 9a45446 adds Visit.layout.xml
add 2733401 adds Visit.columnOrder.txt
add 3dbe21f adds Visit.png
add fe32063 updates javax to jakarta
add cefc253 makes constructor public
add a8acc09 adds VisitRepository
add ddfcece adds PetOwner_bookVisit mixin action, to allow visits to be booked
add 1dda91f adds 'visits' mixin collection, to view visits of pets of a pet owner.
add d3e1386 updates PetOwner's layout, indicating where to render the 'visits' coll.
add 794a469 updates javax to jakarta
add 5c377a8 updates visit module's pom.xml with dependency on unittestsupport-applib
add 402b6df adds unit test for PetOwner_bookVisit
add aab9f6c Updates PetOwner's delete action to fire a specific domain event
add 750b22e adds a subscriber to veto deletion if there are any visits for the owner
add b216a29 updates javax to jakarta
add 6f45b71 updates VisitRepository, adds findByVisitAfter
add 6824fee updates HomePageViewModel, adds futureVisits collection
add ee31d6a updates layout for HomePageViewModel
add fbdd4f4 adds columnOrder for HomePageViewModel#futureVisits
add d4dfc34 adds VisitRepository#findByPetAndVisitAt
add 197e578 adds HomePageViewModel_bookVisit convenience action
add 1ca255d updates title of HomePageViewModel
add 47fcee2 updates javax to jakarta
add 279cd18 adds maven dependencies on causeway integtestsupport-applib
add 043349d adds VisitModuleIntegTestAbstract
add 3f0c5aa adds application-test.yml props
add 1c30849 adds Bootstrap_IntegTest to check setup
add b8b5f4a adds happy case integ test for bookVisit
add cdd2ee8 adds sad case (cannot book visit in the past) as integ test
add 1b48a5f updates javax to jakarta
new 19e10b0 adds Visit_persona
new 8f47ab2 updates DomainAppDemo to create visits as well as pet owners/pets
new fe881dd updates javax to jakarta
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
tag are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (cce9357)
\
N -- N -- N refs/tags/tags/3.1.0/09-02-adds-visit-fixture (fe881dd)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
module-petowner/pom.xml | 2 +-
module-visit/pom.xml | 2 +-
tagger.sh | 84 +++++++++++++++++++++++++++++++++++--------------
webapp/pom.xml | 2 +-
4 files changed, 63 insertions(+), 27 deletions(-)
(causeway-app-petclinic) 01/03: adds Visit_persona
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to tag tags/3.1.0/09-02-adds-visit-fixture
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit 19e10b04a27bf95c155f4a3c4b7c3e33b858aac4
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Jun 3 14:16:46 2024 +0100
adds Visit_persona
creates a random number of visits for each pet
---
.../modules/visit/fixture/Visit_persona.java | 131 +++++++++++++++++++++
1 file changed, 131 insertions(+)
diff --git a/module-visit/src/main/java/domainapp/modules/visit/fixture/Visit_persona.java b/module-visit/src/main/java/domainapp/modules/visit/fixture/Visit_persona.java
new file mode 100644
index 0000000..5b33da9
--- /dev/null
+++ b/module-visit/src/main/java/domainapp/modules/visit/fixture/Visit_persona.java
@@ -0,0 +1,131 @@
+package domainapp.modules.visit.fixture;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import java.util.Optional;
+
+import javax.inject.Inject;
+
+import org.apache.causeway.applib.services.wrapper.control.SyncControl;
+
+import org.apache.causeway.applib.services.clock.ClockService;
+import org.apache.causeway.applib.services.registry.ServiceRegistry;
+import org.apache.causeway.testing.fakedata.applib.services.FakeDataService;
+import org.apache.causeway.testing.fixtures.applib.personas.BuilderScriptWithResult;
+import org.apache.causeway.testing.fixtures.applib.personas.Persona;
+import org.apache.causeway.testing.fixtures.applib.setup.PersonaEnumPersistAll;
+
+import domainapp.modules.petowner.fixture.PetOwner_persona;
+import domainapp.modules.visit.contributions.PetOwner_bookVisit;
+import domainapp.modules.visit.contributions.PetOwner_visits;
+import domainapp.modules.visit.dom.visit.Visit;
+
+import domainapp.modules.visit.dom.visit.VisitRepository;
+
+import lombok.Getter;
+import lombok.RequiredArgsConstructor;
+import lombok.Setter;
+import lombok.val;
+import lombok.experimental.Accessors;
+
+import domainapp.modules.petowner.dom.petowner.PetOwner;
+
+/**
+ * Returns the most recent Visit, or the one scheduled.
+ */
+@RequiredArgsConstructor
+public enum Visit_persona
+implements Persona<Visit, Visit_persona.Builder> {
+
+ JAMAL_VISITS(PetOwner_persona.JAMAL),
+ CAMILA_VISITS(PetOwner_persona.CAMILA),
+ ARJUN_VISITS(PetOwner_persona.ARJUN),
+ NIA_VISITS(PetOwner_persona.NIA),
+ OLIVIA_VISITS(PetOwner_persona.OLIVIA),
+ LEILA_VISITS(PetOwner_persona.LEILA),
+ MATT_VISITS(PetOwner_persona.MATT),
+ BENJAMIN_VISITS(PetOwner_persona.BENJAMIN),
+ JESSICA_VISITS(PetOwner_persona.JESSICA),
+ DANIEL_VISITS(PetOwner_persona.DANIEL);
+
+ private final PetOwner_persona petOwner_p;
+
+ @Override
+ public Builder builder() {
+ return new Builder().setPersona(this);
+ }
+
+ @Override
+ public Visit findUsing(final ServiceRegistry serviceRegistry) {
+ final var owner = petOwner_p.findUsing(serviceRegistry);
+ final var visits = serviceRegistry.lookupService(VisitRepository.class)
+ .map(x -> x.findByPetOwner(owner))
+ .orElseThrow();
+ return lastOf(visits);
+ }
+
+ private static Visit lastOf(List<Visit> visits) {
+ return visits.get(visits.size()-1);
+ }
+
+ @Accessors(chain = true)
+ public static class Builder extends BuilderScriptWithResult<Visit> {
+
+ @Getter @Setter private Visit_persona persona;
+
+ @Override
+ protected Visit buildResult(final ExecutionContext ec) {
+
+ final var petOwner = ec.executeChildT(this, persona.petOwner_p);
+
+ petOwner.getPets().forEach(pet -> {
+
+ // in the past
+ final var numVisits = fakeDataService.ints().between(2, 4);
+ for (var i = 0; i < numVisits; i++) {
+ final var daysAgo = fakeDataService.ints().between(5, 500);
+ final var minsInTheDay = randomAppointmentTime();
+ final var appointmentTime = randomAppointmentTimeFromToday(-daysAgo, minsInTheDay);
+ wrapperFactory.wrapMixin(PetOwner_bookVisit.class, petOwner, SyncControl.control().withSkipRules()).act(pet, appointmentTime);
+ }
+
+ // in the future
+ if (fakeDataService.booleans().coinFlip()) {
+ final var daysAhead = fakeDataService.ints().between(1, 10);
+ final var minsInTheDay = randomAppointmentTime();
+ final var appointmentTime = randomAppointmentTimeFromToday(daysAhead, minsInTheDay);
+ wrapperFactory.wrapMixin(PetOwner_bookVisit.class, petOwner, SyncControl.control().withSkipRules()).act(pet, appointmentTime);
+ }
+ });
+
+ final var numDaysAgo = fakeDataService.ints().between(2, 100);
+ final var lastVisit = clockService.getClock().nowAsLocalDate().minusDays(numDaysAgo);
+ petOwner.setLastVisit(lastVisit);
+
+ final var visits = wrapperFactory.wrapMixin(PetOwner_visits.class, petOwner, SyncControl.control().withSkipRules()).coll();
+ return lastOf(visits);
+ }
+
+ private LocalDateTime randomAppointmentTimeFromToday(int days, int appointmentTime) {
+ return clockService.getClock().nowAsLocalDate().atStartOfDay().plusDays(days).plusMinutes(appointmentTime);
+ }
+
+ private int randomAppointmentTime() {
+ return (9 * 60) + (fakeDataService.ints().between(0, 32) * 15);
+ }
+
+ // -- DEPENDENCIES
+
+ @Inject ClockService clockService;
+ @Inject FakeDataService fakeDataService;
+ }
+
+ public static class PersistAll
+ extends PersonaEnumPersistAll<Visit, Visit_persona, Builder> {
+ public PersistAll() {
+ super(Visit_persona.class);
+ }
+ }
+
+
+}
(causeway-app-petclinic) 02/03: updates DomainAppDemo to create visits as well as pet owners/pets
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to tag tags/3.1.0/09-02-adds-visit-fixture
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit 8f47ab2bb22477f187b6b03f9258d23eba994d87
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Jun 3 14:17:43 2024 +0100
updates DomainAppDemo to create visits as well as pet owners/pets
---
.../domainapp/webapp/application/fixture/scenarios/DomainAppDemo.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/webapp/src/main/java/domainapp/webapp/application/fixture/scenarios/DomainAppDemo.java b/webapp/src/main/java/domainapp/webapp/application/fixture/scenarios/DomainAppDemo.java
index 6964593..32b8c67 100644
--- a/webapp/src/main/java/domainapp/webapp/application/fixture/scenarios/DomainAppDemo.java
+++ b/webapp/src/main/java/domainapp/webapp/application/fixture/scenarios/DomainAppDemo.java
@@ -5,14 +5,14 @@ import jakarta.inject.Inject;
import org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript;
import org.apache.causeway.testing.fixtures.applib.modules.ModuleWithFixturesService;
-import domainapp.modules.petowner.fixture.PetOwner_persona;
+import domainapp.modules.visit.fixture.Visit_persona;
public class DomainAppDemo extends FixtureScript {
@Override
protected void execute(final ExecutionContext ec) {
ec.executeChildren(this, moduleWithFixturesService.getTeardownFixture());
- ec.executeChild(this, new PetOwner_persona.PersistAll());
+ ec.executeChild(this, new Visit_persona.PersistAll());
}
@Inject ModuleWithFixturesService moduleWithFixturesService;
(causeway-app-petclinic) 03/03: updates javax to jakarta
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to tag tags/3.1.0/09-02-adds-visit-fixture
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit fe881dd8afbfc94dd08e42f5ed9a2163a0c377a4
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Jun 3 14:20:29 2024 +0100
updates javax to jakarta
---
.../src/main/java/domainapp/modules/visit/fixture/Visit_persona.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/module-visit/src/main/java/domainapp/modules/visit/fixture/Visit_persona.java b/module-visit/src/main/java/domainapp/modules/visit/fixture/Visit_persona.java
index 5b33da9..295a9a7 100644
--- a/module-visit/src/main/java/domainapp/modules/visit/fixture/Visit_persona.java
+++ b/module-visit/src/main/java/domainapp/modules/visit/fixture/Visit_persona.java
@@ -4,7 +4,7 @@ import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;
-import javax.inject.Inject;
+import jakarta.inject.Inject;
import org.apache.causeway.applib.services.wrapper.control.SyncControl;