From 5d994c0a1e9d7536348b1b037674aff2ec61807a Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 15 Aug 2016 20:10:03 +0200 Subject: [PATCH] defined properties ordering --- services/src/main/java/de/hsadmin/service/pac/HiveVO.java | 4 ++++ services/src/main/java/de/hsadmin/service/pac/PacVO.java | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/services/src/main/java/de/hsadmin/service/pac/HiveVO.java b/services/src/main/java/de/hsadmin/service/pac/HiveVO.java index b707746..99659cd 100644 --- a/services/src/main/java/de/hsadmin/service/pac/HiveVO.java +++ b/services/src/main/java/de/hsadmin/service/pac/HiveVO.java @@ -3,6 +3,7 @@ package de.hsadmin.service.pac; import de.hsadmin.common.error.TechnicalException; import de.hsadmin.module.ValueObject; import de.hsadmin.module.impl.AbstractVO; +import de.hsadmin.module.property.Display; import de.hsadmin.module.property.ReadWrite; import de.hsadmin.module.property.ReadWritePolicy; import de.hsadmin.module.property.Required; @@ -17,6 +18,7 @@ public class HiveVO extends AbstractVO implements ValueObject { @Required(true) @ReadWrite(ReadWritePolicy.WRITEONCE) @Search(SearchPolicy.EQUALS) + @Display(sequence=10) private String name; @Required(true) @@ -25,9 +27,11 @@ public class HiveVO extends AbstractVO implements ValueObject { boMapping=ReferredStringPersistentObjectMapper.class, rpcMapping=DefaultStringParameterMapMapper.class, boMappingPath="inetAddr.inetAddr") + @Display(sequence=20) private String inetAddress; @ReadWrite(ReadWritePolicy.READWRITE) + @Display(sequence=30) private String description; public HiveVO() throws TechnicalException { diff --git a/services/src/main/java/de/hsadmin/service/pac/PacVO.java b/services/src/main/java/de/hsadmin/service/pac/PacVO.java index f1929e7..d22e5b1 100644 --- a/services/src/main/java/de/hsadmin/service/pac/PacVO.java +++ b/services/src/main/java/de/hsadmin/service/pac/PacVO.java @@ -8,6 +8,7 @@ import de.hsadmin.common.error.TechnicalException; import de.hsadmin.common.error.UserException; import de.hsadmin.module.ValueObject; import de.hsadmin.module.impl.AbstractVO; +import de.hsadmin.module.property.Display; import de.hsadmin.module.property.ElementsType; import de.hsadmin.module.property.Property; import de.hsadmin.module.property.ReadWrite; @@ -24,6 +25,7 @@ public class PacVO extends AbstractVO implements ValueObject { @Required(true) @ReadWrite(ReadWritePolicy.WRITEONCE) @Search(SearchPolicy.LIKE) + @Display(sequence=10) private String name; @Required(true) @@ -33,6 +35,7 @@ public class PacVO extends AbstractVO implements ValueObject { boMapping=ReferredStringPersistentObjectMapper.class, rpcMapping=DefaultStringParameterMapMapper.class, boMappingPath="customer.name") + @Display(sequence=20) private String customer; @Required(true) @@ -42,6 +45,7 @@ public class PacVO extends AbstractVO implements ValueObject { boMapping=ReferredStringPersistentObjectMapper.class, rpcMapping=DefaultStringParameterMapMapper.class, boMappingPath="basePac.name") + @Display(sequence=30) private String basePac; @Required(true) @@ -51,15 +55,19 @@ public class PacVO extends AbstractVO implements ValueObject { boMapping=ReferredStringPersistentObjectMapper.class, rpcMapping=DefaultStringParameterMapMapper.class, boMappingPath="hive.name") + @Display(sequence=40) private String hive; @ReadWrite(ReadWritePolicy.READWRITE) + @Display(sequence=50) private Date created; @ReadWrite(ReadWritePolicy.READWRITE) + @Display(sequence=60) private Date cancelled; @ReadWrite(ReadWritePolicy.READWRITE) + @Display(sequence=70) private Boolean free; @Required(true)