@Entity public class PhoneInfo extends ContactInfo
Modifier and Type | Field and Description |
---|---|
private Integer |
extension |
private String |
phoneNumber |
Constructor and Description |
---|
PhoneInfo() |
Modifier and Type | Method and Description |
---|---|
ContactType |
getContactType() |
Integer |
getExtension() |
String |
getPhoneNumber() |
void |
setExtension(Integer extension) |
void |
setPhoneNumber(String phoneNumber) |
String |
toString() |
getContact, getId, getRole, setContact, setRole
@NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=12, max=12, groups=PostNormalizedCheck.class) @Pattern(regexp="^[0-9-]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^[0-9]{3}-[0-9]{3}-[0-9]{4}$",groups=PostNormalizedCheck.class) private String phoneNumber
private Integer extension
public ContactType getContactType()
getContactType
in class ContactInfo
public String getPhoneNumber()
public void setPhoneNumber(String phoneNumber)
public Integer getExtension()
public void setExtension(Integer extension)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.