Models an association between one class and another
| Constructor and description |
|---|
Association
(PersistentEntity owner, MappingContext context, java.beans.PropertyDescriptor descriptor) |
Association
(PersistentEntity owner, MappingContext context, java.lang.String name, java.lang.Class type) |
| Type | Name and description |
|---|---|
boolean |
doesCascade(javax.persistence.CascadeType cascadeOperation)Returns true if the this association cascade for the given cascade operation |
boolean |
doesCascade(javax.persistence.CascadeType... cascadeOperations)Returns true if the this association cascade for the given cascade operation |
PersistentEntity |
getAssociatedEntity() |
protected java.util.Set<javax.persistence.CascadeType> |
getCascadeOperations() |
javax.persistence.FetchType |
getFetchStrategy()@return The fetch strategy for the association |
Association |
getInverseSide()@return The inverside side or null if the association is not bidirectional |
java.lang.String |
getReferencedPropertyName() |
boolean |
isBasic()@return Whether this association is embedded |
boolean |
isBidirectional() |
boolean |
isCircular()@return Whether the association is circular |
boolean |
isEmbedded()@return Whether this association is embedded |
boolean |
isList()@return Whether the association is a List |
boolean |
isOwningSide()Returns whether this side owns the relationship. |
void |
setAssociatedEntity(PersistentEntity associatedEntity) |
void |
setOwningSide(boolean owningSide) |
void |
setReferencedPropertyName(java.lang.String referencedPropertyName) |
java.lang.String |
toString() |
Returns true if the this association cascade for the given cascade operation
cascadeOperation - The cascadeOperationReturns true if the this association cascade for the given cascade operation
cascadeOperations - The cascadeOperations
Returns whether this side owns the relationship. This controls the default cascading behavior if none is specified