Package org.hibernate.mapping
Class OneToOne
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.ToOne
org.hibernate.mapping.OneToOne
- All Implemented Interfaces:
Serializable,Fetchable,KeyValue,Value
A one-to-one association mapping
- See Also:
-
Field Summary
Fields inherited from class org.hibernate.mapping.ToOne
referencedPropertyName, unwrapProxyFields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ValueVisitor visitor) voidReturns the foreignKeyType.Returns the identifier.getType()booleanReturns the constrained.booleanvoidsetConstrained(boolean constrained) Sets the constrained.voidsetEntityName(String propertyName) voidsetForeignKeyType(ForeignKeyDirection foreignKeyType) Sets the foreignKeyType.voidsetIdentifier(KeyValue identifier) Sets the identifier.voidsetPropertyName(String propertyName) Methods inherited from class org.hibernate.mapping.ToOne
getFetchMode, getReferencedEntityName, getReferencedPropertyName, isEmbedded, isLazy, isTypeSpecified, isUnwrapProxy, isValid, setEmbedded, setFetchMode, setLazy, setReferencedEntityName, setReferencedPropertyName, setTypeUsingReflection, setUnwrapProxyMethods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addFormula, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMappings, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isSimpleValue, isUpdateable, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, toString
-
Constructor Details
-
OneToOne
- Throws:
MappingException
-
-
Method Details
-
getPropertyName
-
setPropertyName
-
getEntityName
-
setEntityName
-
getType
- Specified by:
getTypein interfaceValue- Specified by:
getTypein classToOne- Throws:
MappingException
-
createForeignKey
- Specified by:
createForeignKeyin interfaceValue- Specified by:
createForeignKeyin classToOne- Throws:
MappingException
-
getConstraintColumns
- Overrides:
getConstraintColumnsin classSimpleValue
-
isConstrained
public boolean isConstrained()Returns the constrained.- Returns:
- boolean
-
getForeignKeyType
Returns the foreignKeyType.- Returns:
- AssociationType.ForeignKeyType
-
getIdentifier
Returns the identifier.- Returns:
- Value
-
setConstrained
public void setConstrained(boolean constrained) Sets the constrained.- Parameters:
constrained- The constrained to set
-
setForeignKeyType
Sets the foreignKeyType.- Parameters:
foreignKeyType- The foreignKeyType to set
-
setIdentifier
Sets the identifier.- Parameters:
identifier- The identifier to set
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceValue- Overrides:
isNullablein classSimpleValue
-
accept
-