You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2021/09/30 08:16:48 UTC

[isis-app-demo] 15/18: adds firstName property

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/isis-app-demo.git

commit 5f901a23e5243102f2d7252cca8e6f4064673ffa
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Sep 30 08:57:34 2021 +0100

    adds firstName property
    
    
    adds import
---
 .../main/java/petclinic/modules/pets/dom/petowner/PetOwner.java    | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/module-pets/src/main/java/petclinic/modules/pets/dom/petowner/PetOwner.java b/module-pets/src/main/java/petclinic/modules/pets/dom/petowner/PetOwner.java
index 5bc5b7c..6f56e7a 100644
--- a/module-pets/src/main/java/petclinic/modules/pets/dom/petowner/PetOwner.java
+++ b/module-pets/src/main/java/petclinic/modules/pets/dom/petowner/PetOwner.java
@@ -42,6 +42,7 @@ import lombok.Setter;
 import lombok.ToString;
 import lombok.val;
 
+import petclinic.modules.pets.types.FirstName;
 import petclinic.modules.pets.types.LastName;
 import petclinic.modules.pets.types.Notes;
 
@@ -101,6 +102,12 @@ public class PetOwner implements Comparable<PetOwner> {
     @PropertyLayout(fieldSetId = "name", sequence = "1")
     private String lastName;
 
+    @FirstName
+    @Column(length = FirstName.MAX_LEN, nullable = true)
+    @Getter @Setter @ToString.Include
+    @PropertyLayout(fieldSetId = "name", sequence = "2")
+    private String firstName;
+
     @Notes
     @Column(length = Notes.MAX_LEN, nullable = true)
     @Getter @Setter