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 bd57a8889cf6d37091d4dd67fd65bc4721c2836d
Author: Dan Haywood <[email protected]>
AuthorDate: Sun May 26 10:08:23 2024 +0100

    associates telephoneNumber property with its fieldset using .layout.xml
---
 .../main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java   | 1 -
 .../java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml  | 4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)

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 4d619c8..e0356e9 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
@@ -138,7 +138,6 @@ public class PetOwner implements Comparable<PetOwner>, 
CalendarEventable {
     @PhoneNumber
     @Column(length = PhoneNumber.MAX_LEN, nullable = true, name = 
"telephoneNumber")
     @Getter @Setter
-    @PropertyLayout(fieldSetId = "contact", sequence = "1.1")
     private String telephoneNumber;
 
     @javax.persistence.Embedded
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 e6a3dfe..339bf3b 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
@@ -41,7 +41,9 @@
                     </bs3:tabGroup>
                 </bs3:col>
                 <bs3:col span="12">
-                    <cpt:fieldSet name="Contact" id="contact"/>
+                    <cpt:fieldSet name="Contact" id="contact">
+                        <cpt:property id="telephoneNumber"/>
+                    </cpt:fieldSet>
                 </bs3:col>
                 <bs3:col span="12">
                     <cpt:fieldSet name="Details" id="details"/>

Reply via email to