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.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 {

View File

@ -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)