Package org.hibernate.mapping
Class ManyToOne
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.ToOne
org.hibernate.mapping.ManyToOne
- All Implemented Interfaces:
Serializable,Fetchable,KeyValue,Value
A many-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) voidvoidcreatePropertyRefConstraints(Map persistentClasses) getType()booleanbooleanvoidvoidsetIgnoreNotFound(boolean ignoreNotFound) 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, 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
-
Constructor Details
-
ManyToOne
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceValue- Specified by:
getTypein classToOne- Throws:
MappingException
-
createForeignKey
- Specified by:
createForeignKeyin interfaceValue- Specified by:
createForeignKeyin classToOne- Throws:
MappingException
-
createPropertyRefConstraints
-
accept
-
isIgnoreNotFound
public boolean isIgnoreNotFound() -
setIgnoreNotFound
public void setIgnoreNotFound(boolean ignoreNotFound) -
markAsLogicalOneToOne
public void markAsLogicalOneToOne() -
isLogicalOneToOne
public boolean isLogicalOneToOne()
-