org.hibernate.mapping

Class ManyToOne

Implemented Interfaces:
Fetchable, KeyValue, Serializable, Value

public class ManyToOne
extends ToOne

A many-to-one association mapping
Author:
Gavin King

Field Summary

Fields inherited from class org.hibernate.mapping.ToOne

referencedPropertyName, unwrapProxy

Constructor Summary

ManyToOne(Table table)

Method Summary

Object
accept(ValueVisitor visitor)
void
createForeignKey()
void
createPropertyRefConstraints(Map persistentClasses)
Type
getType()
boolean
isIgnoreNotFound()
void
setIgnoreNotFound(boolean ignoreNotFound)

Methods inherited from class org.hibernate.mapping.ToOne

accept, createForeignKey, getFetchMode, getReferencedEntityName, getReferencedPropertyName, getType, isEmbedded, isLazy, isTypeSpecified, isUnwrapProxy, isValid, setEmbedded, setFetchMode, setLazy, setReferencedEntityName, setReferencedPropertyName, setTypeUsingReflection, setUnwrapProxy

Methods inherited from class org.hibernate.mapping.SimpleValue

accept, addColumn, addFormula, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getType, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, setTypeUsingReflection, toString

Constructor Details

ManyToOne

public ManyToOne(Table table)

Method Details

accept

public Object accept(ValueVisitor visitor)
Specified by:
accept in interface Value
Overrides:
accept in interface ToOne

createForeignKey

public void createForeignKey()
            throws MappingException
Specified by:
createForeignKey in interface Value
Overrides:
createForeignKey in interface ToOne

createPropertyRefConstraints

public void createPropertyRefConstraints(Map persistentClasses)

getType

public Type getType()
            throws MappingException
Specified by:
getType in interface Value
Overrides:
getType in interface ToOne

isIgnoreNotFound

public boolean isIgnoreNotFound()

setIgnoreNotFound

public void setIgnoreNotFound(boolean ignoreNotFound)