Models an association between one class and another
| Modifiers | Name | Description |
|---|---|---|
static java.util.List<javax.persistence.CascadeType> |
DEFAULT_CHILD_CASCADE |
|
static java.util.List<javax.persistence.CascadeType> |
DEFAULT_OWNER_CASCADE |
| Fields inherited from class | Fields |
|---|---|
class AbstractPersistentProperty |
context, name, owner, type |
| 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 |
PersistentEntity |
getAssociatedEntity() |
protected java.util.List<javax.persistence.CascadeType> |
getCascadeOperations() |
javax.persistence.FetchType |
getFetchStrategy() |
Association |
getInverseSide() |
java.lang.String |
getReferencedPropertyName() |
boolean |
isBidirectional() |
boolean |
isCircular() |
boolean |
isList() |
boolean |
isOwningSide()Returns whether this side owns the relationship. |
void |
setAssociatedEntity(PersistentEntity associatedEntity) |
void |
setFetchStrategy(javax.persistence.FetchType fetchStrategy) |
void |
setOwningSide(boolean owningSide) |
void |
setReferencedPropertyName(java.lang.String referencedPropertyName) |
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class AbstractPersistentProperty |
getCapitilizedName, getName, getOwner, getType, isNullable, toString |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns true if the this association cascade for the given cascade operation
cascadeOperation - The cascadeOperationReturns whether this side owns the relationship. This controls the default cascading behavior if none is specified