@Entity public class PostalInfo extends ContactInfo
Modifier and Type | Field and Description |
---|---|
private PostalAddress |
address |
private AddressType |
type |
Constructor and Description |
---|
PostalInfo() |
Modifier and Type | Method and Description |
---|---|
PostalAddress |
getAddress() |
ContactType |
getContactType() |
AddressType |
getType() |
void |
setAddress(PostalAddress address) |
void |
setType(AddressType type) |
String |
toString() |
getContact, getId, getRole, setContact, setRole
@NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) private AddressType type
@NotNull(groups=PreNormalizedCheck.class) private PostalAddress address
public ContactType getContactType()
getContactType
in class ContactInfo
public AddressType getType()
public void setType(AddressType type)
public PostalAddress getAddress()
public void setAddress(PostalAddress address)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.