@Entity public class Address2 extends Object
Modifier and Type | Field and Description |
---|---|
private String |
city |
private int |
id |
private String |
state |
private String |
street |
private String |
zip |
Constructor and Description |
---|
Address2() |
Modifier and Type | Method and Description |
---|---|
String |
getCity() |
int |
getId() |
String |
getState() |
String |
getStreet() |
String |
getZip() |
Address2 |
setCity(String city) |
Address2 |
setState(String state) |
Address2 |
setStreet(String street) |
Address2 |
setZip(String zip) |
String |
toString() |
private int id
@NotNull(message="street not supplied") @Size(max=32, message="street name too large", groups=DBChecks.class) @Pattern(regexp="^[0-9A-Za-z\\ ]+$", groups=DataChecks.class, message="street must be numbers and letters") private String street
@NotNull(message="city not supplied") @Size(max=20, message="city name too large", groups=DBChecks.class) @Pattern(regexp="^[a-zA-Z\\ ]+$", groups=DataChecks.class, message="city must be upper and lower case characters") private String city
@NotNull(message="state not supplied") @Size(min=2, max=2, message="state wrong size", groups=DBChecks.class) @Pattern(regexp="^[A-Z][A-Z]$", groups=DataChecks.class, message="state must be upper case letters") private String state
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.