Package org.hibernate.mapping
Class ToOne
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.ToOne
- All Implemented Interfaces:
Serializable,Fetchable,KeyValue,Value
A simple-point association (ie. a reference to another entity).
- See Also:
-
Field Summary
FieldsFields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ValueVisitor visitor) abstract voidabstract TypegetType()booleanbooleanisLazy()booleanbooleanbooleanvoidsetEmbedded(boolean embedded) voidsetFetchMode(FetchMode fetchMode) voidsetLazy(boolean lazy) voidsetReferencedEntityName(String referencedEntityName) voidvoidsetTypeUsingReflection(String className, String propertyName) voidsetUnwrapProxy(boolean unwrapProxy) Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addFormula, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMappings, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isUpdateable, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, toString
-
Field Details
-
referencedPropertyName
-
unwrapProxy
protected boolean unwrapProxy
-
-
Constructor Details
-
ToOne
-
-
Method Details
-
getFetchMode
- Specified by:
getFetchModein interfaceFetchable- Specified by:
getFetchModein interfaceValue- Overrides:
getFetchModein classSimpleValue
-
setFetchMode
- Specified by:
setFetchModein interfaceFetchable
-
createForeignKey
- Specified by:
createForeignKeyin interfaceValue- Overrides:
createForeignKeyin classSimpleValue- Throws:
MappingException
-
getType
- Specified by:
getTypein interfaceValue- Overrides:
getTypein classSimpleValue- Throws:
MappingException
-
getReferencedPropertyName
-
setReferencedPropertyName
-
getReferencedEntityName
-
setReferencedEntityName
-
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue- Throws:
MappingException
-
isTypeSpecified
public boolean isTypeSpecified()- Overrides:
isTypeSpecifiedin classSimpleValue
-
accept
- Specified by:
acceptin interfaceValue- Overrides:
acceptin classSimpleValue
-
isEmbedded
public boolean isEmbedded() -
setEmbedded
public void setEmbedded(boolean embedded) -
isValid
- Specified by:
isValidin interfaceValue- Overrides:
isValidin classSimpleValue- Throws:
MappingException
-
isLazy
public boolean isLazy() -
setLazy
public void setLazy(boolean lazy) -
isUnwrapProxy
public boolean isUnwrapProxy() -
setUnwrapProxy
public void setUnwrapProxy(boolean unwrapProxy)
-