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 1ec0315e0eb203a04854853c2de38b35b86c1ea1
Author: Dan Haywood <[email protected]>
AuthorDate: Sun May 26 10:11:59 2024 +0100

     associates daysSinceLastVisit property with its fieldset using .layout.xml
---
 .../src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java  | 1 -
 .../java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml     | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
 
b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
index bcd8a1e..a5d1712 100644
--- 
a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
+++ 
b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
@@ -180,7 +180,6 @@ public class PetOwner implements Comparable<PetOwner>, 
CalendarEventable {
 
 
     @Property
-    @PropertyLayout(fieldSetId = LayoutConstants.FieldSetId.DETAILS, sequence 
= "3.1")
     public Long getDaysSinceLastVisit() {
         return getLastVisit() != null
                 ? ChronoUnit.DAYS.between(getLastVisit(), 
clockService.getClock().nowAsLocalDate())
diff --git 
a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml
 
b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml
index 99f66e6..f52e833 100644
--- 
a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml
+++ 
b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml
@@ -50,6 +50,7 @@
                     <cpt:fieldSet name="Details" id="details">
                         <cpt:property id="notes"/>
                         <cpt:property id="lastVisit"/>
+                        <cpt:property id="daysSinceLastVisit"/>
                     </cpt:fieldSet>
                 </bs3:col>
             </bs3:row>

Reply via email to