public class HibernateOneToOneProperty extends OneToOneWithMapping implements HibernateToOneProperty
Hibernate implementation of OneToOne
| Fields inherited from class | Fields |
|---|---|
class OneToOneWithMapping |
propertyMapping |
class AbstractPersistentProperty |
context, inherited, name, owner, type |
| Constructor and description |
|---|
HibernateOneToOneProperty(PersistentEntity entity, MappingContext context, java.beans.PropertyDescriptor property) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public GrailsHibernatePersistentEntity |
getHibernateAssociatedEntity() |
|
public org.hibernate.FetchMode |
getHibernateFetchMode()Resolved fetch mode: uses the configured value or falls back to org.hibernate.FetchMode#DEFAULT. |
|
public org.hibernate.type.ForeignKeyDirection |
getHibernateForeignKeyDirection()FK direction: FROM_PARENT when constrained (hasOne on other side), TO_PARENT otherwise. |
|
public HibernateOneToOneProperty |
getHibernateInverseSide() |
|
public java.lang.String |
getHibernateReferencedEntityName()The entity name that Hibernate should reference. |
|
public java.lang.String |
getHibernateReferencedPropertyName()The property name on the referenced entity that back-references this association. |
|
public boolean |
isAssociationColumnNullable() |
|
public boolean |
isHibernateConstrained()True when the FK is on this side (hasOne on the other side). |
|
public boolean |
isValidHibernateManyToOne() |
|
public boolean |
isValidHibernateOneToOne() |
|
public boolean |
needsSimpleValueBinding()True when Hibernate should bind a simple column value rather than a referenced property name. |
|
public void |
validateAssociation() |
Resolved fetch mode: uses the configured value or falls back to org.hibernate.FetchMode#DEFAULT.
FK direction: FROM_PARENT when constrained (hasOne on other side), TO_PARENT otherwise.
The entity name that Hibernate should reference. When the other side exists, it is the other side's owner; otherwise the directly associated entity.
The property name on the referenced entity that back-references this association. Only meaningful when isHibernateConstrained() is false and the other side exists.
True when the FK is on this side (hasOne on the other side). Maps to Hibernate constrained.
True when Hibernate should bind a simple column value rather than a referenced property name. This is the case when the FK is on this side (constrained) or no inverse side exists.