Package org.hibernate.mapping
Class OneToMany
java.lang.Object
org.hibernate.mapping.OneToMany
- All Implemented Interfaces:
Serializable,Value
A mapping model object representing a many-to-one association.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ValueVisitor visitor) copy()voidvoidcreateUniqueKey(MetadataBuildingContext context) boolean[]If the mapping involves only columns, return them.intThe number of columns and formulas in the mapping.boolean[]The mapping to columns and formulas.getTable()Table of the owner entity (the "one" side)getType()booleanbooleanbooleanbooleanbooleanisColumnInsertable(int index) booleanisColumnUpdateable(int index) booleanbooleanbooleanbooleanbooleanbooleanbooleanisValid(MappingContext mappingContext) voidsetAssociatedClass(PersistentClass associatedClass) Associated entity on the many sidevoidsetIgnoreNotFound(boolean ignoreNotFound) voidsetNotFoundAction(NotFoundAction notFoundAction) voidsetReferencedEntityName(String referencedEntityName) Associated entity on the "many" sidevoidsetTypeUsingReflection(String className, String propertyName) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.mapping.Value
checkColumnDuplication, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getVirtualSelectables
-
Constructor Details
-
OneToMany
public OneToMany(MetadataBuildingContext buildingContext, PersistentClass owner) throws MappingException - Throws:
MappingException
-
-
Method Details
-
copy
-
getBuildingContext
- Specified by:
getBuildingContextin interfaceValue
-
getServiceRegistry
- Specified by:
getServiceRegistryin interfaceValue
-
getAssociatedClass
-
setAssociatedClass
Associated entity on the many side -
createForeignKey
public void createForeignKey()- Specified by:
createForeignKeyin interfaceValue
-
createUniqueKey
- Specified by:
createUniqueKeyin interfaceValue
-
getSelectables
Description copied from interface:ValueThe mapping to columns and formulas.- Specified by:
getSelectablesin interfaceValue
-
getColumns
Description copied from interface:ValueIf the mapping involves only columns, return them.- Specified by:
getColumnsin interfaceValue
-
getColumnSpan
public int getColumnSpan()Description copied from interface:ValueThe number of columns and formulas in the mapping.- Specified by:
getColumnSpanin interfaceValue
-
getFetchMode
- Specified by:
getFetchModein interfaceValue
-
getTable
Table of the owner entity (the "one" side) -
getType
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceValue
-
isSimpleValue
public boolean isSimpleValue()- Specified by:
isSimpleValuein interfaceValue
-
isAlternateUniqueKey
public boolean isAlternateUniqueKey()- Specified by:
isAlternateUniqueKeyin interfaceValue
-
hasFormula
public boolean hasFormula()- Specified by:
hasFormulain interfaceValue
-
isValid
- Specified by:
isValidin interfaceValue- Throws:
MappingException
-
getReferencedEntityName
-
setReferencedEntityName
Associated entity on the "many" side -
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue
-
accept
-
isSame
-
isSame
-
getColumnInsertability
public boolean[] getColumnInsertability()- Specified by:
getColumnInsertabilityin interfaceValue
-
hasAnyInsertableColumns
public boolean hasAnyInsertableColumns()- Specified by:
hasAnyInsertableColumnsin interfaceValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()- Specified by:
getColumnUpdateabilityin interfaceValue
-
hasAnyUpdatableColumns
public boolean hasAnyUpdatableColumns()- Specified by:
hasAnyUpdatableColumnsin interfaceValue
-
getNotFoundAction
-
setNotFoundAction
-
isIgnoreNotFound
public boolean isIgnoreNotFound() -
setIgnoreNotFound
public void setIgnoreNotFound(boolean ignoreNotFound) -
isColumnInsertable
public boolean isColumnInsertable(int index) - Specified by:
isColumnInsertablein interfaceValue
-
isColumnUpdateable
public boolean isColumnUpdateable(int index) - Specified by:
isColumnUpdateablein interfaceValue
-
toString
-
isPartitionKey
public boolean isPartitionKey()- Specified by:
isPartitionKeyin interfaceValue
-