@Length( max = MAX_ID_LEN ) public String getSecondaryId() { return secondaryId; }
@Length( min = 1, max = MAX_SHORT_LABEL_LEN ) @NotNull public String getShortLabel() { return shortLabel; }
@Column(name="PASSWORD",nullable=false,length=50) @NotNull @Length(min=6,max=50) public String getPassword() { return password; } public void setPassword(String password) {
@Column(name="STATE",length=2) @NotNull @Length(min=2,max=2) public String getState() { return state; } public void setState(String state) {
@NotNull @Length(min=4,max=10) public String getTrack() { return track; }
@Length( min = 1, max = MAX_SHORT_LABEL_LEN ) @NotNull public String getShortLabel() { return shortLabel; }
@Length (max = 20) @NotNull public String getPmid() { return pmid; }
@Column(name="USERNAME",unique=true,nullable=false,length=50) @NotNull @Length(min=4,max=16) public String getUserName() { return userName; } public void setUserName(String userName) {
@Column(name="ZIP", length=10) @Length(min=5, max=10) @Pattern(regex="[0-9]{5}(-[0-9]{4})?", message="not a valid zipcode") // {validator.zip} @NotNull public String getZip() { return zip; } public void setZip(String zip) {