public interface HibernateAssociation extends HibernatePersistentProperty
Common interface for all Hibernate association properties (both ToOne and ToMany). Extends HibernatePersistentProperty and declares the key Association methods directly so callers can use them
without casting. Note: Association is an abstract class so cannot be listed as a
super-interface; the implementing classes satisfy these contracts through their class hierarchy.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public PersistentEntity |
getAssociatedEntity() |
|
public GrailsHibernatePersistentEntity |
getHibernateAssociatedEntity() |
|
public HibernateAssociation |
getHibernateInverseSide()Returns the inverse side as a HibernateAssociation, eliminating cast at call sites. |
|
public PersistentProperty<?> |
getInverseSide() |
|
public java.lang.String |
getReferencedEntityName() |
|
public java.lang.String |
getTypeName(java.lang.Class<?> propertyType, PropertyConfig config, Mapping mapping)
|
|
public boolean |
isAssociationColumnNullable()Returns the nullable value for the FK column when this property is an association without a user type. |
|
public boolean |
isBidirectional() |
|
public boolean |
isBidirectionalManyToOneWithListMapping(org.hibernate.mapping.Property prop) |
|
public boolean |
isBidirectionalToManyMap() |
|
public boolean |
isCircular() |
|
public boolean |
isOwningSide() |
|
public void |
validateAssociation() |
Returns the inverse side as a HibernateAssociation, eliminating cast at call sites.
propertyType - The property typeconfig - The property configmapping - The mapping Returns the nullable value for the FK column when this property is an association without a
user type. The default is true; subtypes override for their specific semantics.