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/10/02 06:40:24 UTC
[isis-app-demo] 03/05: hides PetOwner lastName and firstName
propertie
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to tag tags/03-07-derived-PetOwner-name
in repository https://gitbox.apache.org/repos/asf/isis-app-demo.git
commit 9b4f857d31c8e003b87cd1750fe6307e6d9c9ffe
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sat Oct 2 07:11:50 2021 +0100
hides PetOwner lastName and firstName propertie
---
.../src/main/java/petclinic/modules/pets/dom/petowner/PetOwner.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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 c2d08cc..09a32b4 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
@@ -25,6 +25,7 @@ import org.apache.isis.applib.annotation.PromptStyle;
import org.apache.isis.applib.annotation.Property;
import org.apache.isis.applib.annotation.PropertyLayout;
import org.apache.isis.applib.annotation.Publishing;
+import org.apache.isis.applib.annotation.Where;
import org.apache.isis.applib.jaxb.PersistentEntityAdapter;
import org.apache.isis.applib.services.message.MessageService;
import org.apache.isis.applib.services.repository.RepositoryService;
@@ -111,13 +112,13 @@ public class PetOwner implements Comparable<PetOwner> {
@LastName
@Column(length = LastName.MAX_LEN, nullable = false)
@Getter @Setter @ToString.Include
- @PropertyLayout(fieldSetId = "name", sequence = "1")
+ @Property(hidden = Where.EVERYWHERE)
private String lastName;
@FirstName
@Column(length = FirstName.MAX_LEN, nullable = true)
@Getter @Setter @ToString.Include
- @PropertyLayout(fieldSetId = "name", sequence = "2")
+ @Property(hidden = Where.EVERYWHERE)
private String firstName;
@Notes