public interface Association<T> extends AbstractAssociation
Modifier and Type | Method and Description |
---|---|
T |
get()
Get the associated entity.
|
EntityReference |
reference() |
void |
set(T associated)
Set the associated entity.
|
T get()
void set(T associated) throws IllegalArgumentException, IllegalStateException
associated
- the entityIllegalArgumentException
- thrown if the entity is not a valid reference for this associationIllegalStateException
- thrown if association is immutableEntityReference reference()