@Entity public abstract class ContactInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private Contact |
contact |
private int |
id |
private ContactRole |
role |
Modifier | Constructor and Description |
---|---|
protected |
ContactInfo() |
|
ContactInfo(Contact contact) |
|
ContactInfo(int id,
Contact contact) |
Modifier and Type | Method and Description |
---|---|
Contact |
getContact() |
abstract ContactType |
getContactType() |
int |
getId() |
ContactRole |
getRole() |
void |
setContact(Contact contact) |
void |
setRole(ContactRole role) |
private int id
@NotNull(groups=PrePersistCheck.class) private Contact contact
@NotNull(groups={PostNormalizedCheck.class,PrePersistCheck.class}) private ContactRole role
protected ContactInfo()
public ContactInfo(Contact contact)
public ContactInfo(int id, Contact contact)
public abstract ContactType getContactType()
public int getId()
public Contact getContact()
public void setContact(Contact contact)
public ContactRole getRole()
public void setRole(ContactRole role)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.