Modifier and Type | Field and Description |
---|---|
private Date |
birthDate |
private String |
email |
private String |
firstName |
private int |
id |
private String |
lastName |
Constructor and Description |
---|
Person() |
Modifier and Type | Method and Description |
---|---|
Date |
getBirthDate() |
String |
getEmail() |
String |
getFirstName() |
int |
getId() |
String |
getLastName() |
Person |
setBirthDate(Date birthDate) |
Person |
setEmail(String email) |
Person |
setFirstName(String firstName) |
Person |
setLastName(String lastName) |
String |
toString() |
private int id
@ValidName(min=1, max=12, regexp="^[a-zA-Z\\ \\-]+$", message="invalid first name") private String firstName
@ValidName(min=1, max=20, regexp="^[a-zA-Z\\ \\-]+$", message="invalid last name") private String lastName
@NotNull(groups={Drivers.class,POCs.class}) @Past(groups=Drivers.class) @MinAge(age=18,groups=POCs.class) @MinAge(age=16,groups=Drivers.class) private Date birthDate
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.