Package org.hibernate.mapping
Class OneToMany
java.lang.Object
org.hibernate.mapping.OneToMany
- All Implemented Interfaces:
Serializable,Value
A mapping for a one-to-many association
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ValueVisitor visitor) voidboolean[]intboolean[]getTable()Table of the owner entity (the "one" side)getType()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAssociatedClass(PersistentClass associatedClass) Associated entity on the many sidevoidsetEmbedded(boolean embedded) voidsetIgnoreNotFound(boolean ignoreNotFound) voidsetReferencedEntityName(String referencedEntityName) Associated entity on the "many" sidevoidsetTypeUsingReflection(String className, String propertyName)
-
Constructor Details
-
OneToMany
- Throws:
MappingException
-
-
Method Details
-
getAssociatedClass
-
setAssociatedClass
Associated entity on the many side -
createForeignKey
public void createForeignKey()- Specified by:
createForeignKeyin interfaceValue
-
getColumnIterator
- Specified by:
getColumnIteratorin interfaceValue
-
getColumnSpan
public int getColumnSpan()- 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
-
getColumnInsertability
public boolean[] getColumnInsertability()- Specified by:
getColumnInsertabilityin interfaceValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()- Specified by:
getColumnUpdateabilityin interfaceValue
-
isEmbedded
public boolean isEmbedded() -
setEmbedded
public void setEmbedded(boolean embedded) -
isIgnoreNotFound
public boolean isIgnoreNotFound() -
setIgnoreNotFound
public void setIgnoreNotFound(boolean ignoreNotFound)
-