defined properties ordering

This commit is contained in:
Peter Hormanns 2016-08-15 20:10:03 +02:00
parent 33ac0c744a
commit 5d994c0a1e
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package de.hsadmin.service.pac;
import de.hsadmin.common.error.TechnicalException; import de.hsadmin.common.error.TechnicalException;
import de.hsadmin.module.ValueObject; import de.hsadmin.module.ValueObject;
import de.hsadmin.module.impl.AbstractVO; import de.hsadmin.module.impl.AbstractVO;
import de.hsadmin.module.property.Display;
import de.hsadmin.module.property.ReadWrite; import de.hsadmin.module.property.ReadWrite;
import de.hsadmin.module.property.ReadWritePolicy; import de.hsadmin.module.property.ReadWritePolicy;
import de.hsadmin.module.property.Required; import de.hsadmin.module.property.Required;
@ -17,6 +18,7 @@ public class HiveVO extends AbstractVO implements ValueObject {
@Required(true) @Required(true)
@ReadWrite(ReadWritePolicy.WRITEONCE) @ReadWrite(ReadWritePolicy.WRITEONCE)
@Search(SearchPolicy.EQUALS) @Search(SearchPolicy.EQUALS)
@Display(sequence=10)
private String name; private String name;
@Required(true) @Required(true)
@ -25,9 +27,11 @@ public class HiveVO extends AbstractVO implements ValueObject {
boMapping=ReferredStringPersistentObjectMapper.class, boMapping=ReferredStringPersistentObjectMapper.class,
rpcMapping=DefaultStringParameterMapMapper.class, rpcMapping=DefaultStringParameterMapMapper.class,
boMappingPath="inetAddr.inetAddr") boMappingPath="inetAddr.inetAddr")
@Display(sequence=20)
private String inetAddress; private String inetAddress;
@ReadWrite(ReadWritePolicy.READWRITE) @ReadWrite(ReadWritePolicy.READWRITE)
@Display(sequence=30)
private String description; private String description;
public HiveVO() throws TechnicalException { public HiveVO() throws TechnicalException {

View File

@ -8,6 +8,7 @@ import de.hsadmin.common.error.TechnicalException;
import de.hsadmin.common.error.UserException; import de.hsadmin.common.error.UserException;
import de.hsadmin.module.ValueObject; import de.hsadmin.module.ValueObject;
import de.hsadmin.module.impl.AbstractVO; import de.hsadmin.module.impl.AbstractVO;
import de.hsadmin.module.property.Display;
import de.hsadmin.module.property.ElementsType; import de.hsadmin.module.property.ElementsType;
import de.hsadmin.module.property.Property; import de.hsadmin.module.property.Property;
import de.hsadmin.module.property.ReadWrite; import de.hsadmin.module.property.ReadWrite;
@ -24,6 +25,7 @@ public class PacVO extends AbstractVO implements ValueObject {
@Required(true) @Required(true)
@ReadWrite(ReadWritePolicy.WRITEONCE) @ReadWrite(ReadWritePolicy.WRITEONCE)
@Search(SearchPolicy.LIKE) @Search(SearchPolicy.LIKE)
@Display(sequence=10)
private String name; private String name;
@Required(true) @Required(true)
@ -33,6 +35,7 @@ public class PacVO extends AbstractVO implements ValueObject {
boMapping=ReferredStringPersistentObjectMapper.class, boMapping=ReferredStringPersistentObjectMapper.class,
rpcMapping=DefaultStringParameterMapMapper.class, rpcMapping=DefaultStringParameterMapMapper.class,
boMappingPath="customer.name") boMappingPath="customer.name")
@Display(sequence=20)
private String customer; private String customer;
@Required(true) @Required(true)
@ -42,6 +45,7 @@ public class PacVO extends AbstractVO implements ValueObject {
boMapping=ReferredStringPersistentObjectMapper.class, boMapping=ReferredStringPersistentObjectMapper.class,
rpcMapping=DefaultStringParameterMapMapper.class, rpcMapping=DefaultStringParameterMapMapper.class,
boMappingPath="basePac.name") boMappingPath="basePac.name")
@Display(sequence=30)
private String basePac; private String basePac;
@Required(true) @Required(true)
@ -51,15 +55,19 @@ public class PacVO extends AbstractVO implements ValueObject {
boMapping=ReferredStringPersistentObjectMapper.class, boMapping=ReferredStringPersistentObjectMapper.class,
rpcMapping=DefaultStringParameterMapMapper.class, rpcMapping=DefaultStringParameterMapMapper.class,
boMappingPath="hive.name") boMappingPath="hive.name")
@Display(sequence=40)
private String hive; private String hive;
@ReadWrite(ReadWritePolicy.READWRITE) @ReadWrite(ReadWritePolicy.READWRITE)
@Display(sequence=50)
private Date created; private Date created;
@ReadWrite(ReadWritePolicy.READWRITE) @ReadWrite(ReadWritePolicy.READWRITE)
@Display(sequence=60)
private Date cancelled; private Date cancelled;
@ReadWrite(ReadWritePolicy.READWRITE) @ReadWrite(ReadWritePolicy.READWRITE)
@Display(sequence=70)
private Boolean free; private Boolean free;
@Required(true) @Required(true)