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
,SortableValue
,Value
public class ManyToOne extends ToOne
A many-to-one association mapping- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.mapping.ToOne
isUnwrapProxyImplicit, referencedPropertyName, referenceToPrimaryKey, unwrapProxy
-
Fields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description ManyToOne(MetadataBuildingContext buildingContext, Table table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(ValueVisitor visitor)
void
createForeignKey()
void
createPropertyRefConstraints(Map<String,PersistentClass> persistentClasses)
void
createUniqueKey()
Type
getType()
boolean
isIgnoreNotFound()
boolean
isLogicalOneToOne()
void
markAsLogicalOneToOne()
void
setIgnoreNotFound(boolean ignoreNotFound)
-
Methods inherited from class org.hibernate.mapping.ToOne
getFetchMode, getPropertyName, getReferencedEntityName, getReferencedPropertyName, isLazy, isReferenceToPrimaryKey, isSame, isSame, isSorted, isTypeSpecified, isUnwrapProxy, isUnwrapProxyImplicit, isValid, setFetchMode, setLazy, setPropertyName, setReferencedEntityName, setReferencedPropertyName, setReferenceToPrimaryKey, setSorted, setTypeUsingReflection, setUnwrapProxy, setUnwrapProxyImplicit, sortProperties
-
Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, copyTypeFrom, createForeignKeyOfEntity, createIdentifierGenerator, createIdentifierGenerator, createParameterImpl, getAttributeConverterDescriptor, getBuildingContext, getColumn, getColumnInsertability, getColumnIterator, getColumns, getColumnSpan, getColumnUpdateability, getConstraintColumnIterator, getCustomIdGeneratorCreator, getForeignKeyDefinition, getForeignKeyName, getIdentifierGenerator, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getJpaAttributeConverterDescriptor, getMetadata, getNullValue, getSelectables, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isConstrained, isIdentityColumn, isLob, isNationalized, isNullable, isSame, isSame, isSimpleValue, isUpdateable, isVersion, justAddColumn, justAddColumn, justAddFormula, makeLob, makeNationalized, makeParameterImpl, makeVersion, setAlternateUniqueKey, setAttributeConverterDescriptor, setCascadeDeleteEnabled, setCustomIdGeneratorCreator, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters, setTypeParameters, sortColumns, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.mapping.Value
getConstraintColumns, getVirtualSelectables
-
-
-
-
Constructor Detail
-
ManyToOne
public ManyToOne(MetadataBuildingContext buildingContext, Table table)
-
-
Method Detail
-
getType
public Type getType() throws MappingException
- Throws:
MappingException
-
createForeignKey
public void createForeignKey()
- Specified by:
createForeignKey
in interfaceValue
- Overrides:
createForeignKey
in classSimpleValue
-
createUniqueKey
public void createUniqueKey()
- Specified by:
createUniqueKey
in interfaceValue
- Overrides:
createUniqueKey
in classSimpleValue
-
createPropertyRefConstraints
public void createPropertyRefConstraints(Map<String,PersistentClass> persistentClasses)
-
accept
public Object accept(ValueVisitor visitor)
-
isIgnoreNotFound
public boolean isIgnoreNotFound()
-
setIgnoreNotFound
public void setIgnoreNotFound(boolean ignoreNotFound)
-
markAsLogicalOneToOne
public void markAsLogicalOneToOne()
-
isLogicalOneToOne
public boolean isLogicalOneToOne()
-
-