Package org.hibernate.mapping
Class OneToMany
- java.lang.Object
-
- org.hibernate.mapping.OneToMany
-
- All Implemented Interfaces:
java.io.Serializable
,Value
public class OneToMany extends java.lang.Object implements Value
A mapping for a one-to-many association- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OneToMany(MetadataBuildingContext buildingContext, PersistentClass owner)
OneToMany(MetadataImplementor metadata, PersistentClass owner)
Deprecated.UseOneToMany(MetadataBuildingContext, PersistentClass)
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
accept(ValueVisitor visitor)
void
createForeignKey()
PersistentClass
getAssociatedClass()
boolean[]
getColumnInsertability()
java.util.Iterator<Selectable>
getColumnIterator()
int
getColumnSpan()
boolean[]
getColumnUpdateability()
FetchMode
getFetchMode()
NotFoundAction
getNotFoundAction()
java.lang.String
getReferencedEntityName()
ServiceRegistry
getServiceRegistry()
Table
getTable()
Table of the owner entity (the "one" side)Type
getType()
boolean
hasFormula()
boolean
isAlternateUniqueKey()
boolean
isIgnoreNotFound()
boolean
isNullable()
boolean
isSame(OneToMany other)
boolean
isSame(Value other)
boolean
isSimpleValue()
boolean
isValid(Mapping mapping)
void
setAssociatedClass(PersistentClass associatedClass)
Associated entity on the many sidevoid
setIgnoreNotFound(boolean ignoreNotFound)
void
setNotFoundAction(NotFoundAction notFoundAction)
void
setReferencedEntityName(java.lang.String referencedEntityName)
Associated entity on the "many" sidevoid
setTypeUsingReflection(java.lang.String className, java.lang.String propertyName)
-
-
-
Constructor Detail
-
OneToMany
@Deprecated public OneToMany(MetadataImplementor metadata, PersistentClass owner) throws MappingException
Deprecated.UseOneToMany(MetadataBuildingContext, PersistentClass)
instead.- Throws:
MappingException
-
OneToMany
public OneToMany(MetadataBuildingContext buildingContext, PersistentClass owner) throws MappingException
- Throws:
MappingException
-
-
Method Detail
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistry
in interfaceValue
-
getAssociatedClass
public PersistentClass getAssociatedClass()
-
setAssociatedClass
public void setAssociatedClass(PersistentClass associatedClass)
Associated entity on the many side
-
createForeignKey
public void createForeignKey()
- Specified by:
createForeignKey
in interfaceValue
-
getColumnIterator
public java.util.Iterator<Selectable> getColumnIterator()
- Specified by:
getColumnIterator
in interfaceValue
-
getColumnSpan
public int getColumnSpan()
- Specified by:
getColumnSpan
in interfaceValue
-
getFetchMode
public FetchMode getFetchMode()
- Specified by:
getFetchMode
in interfaceValue
-
getTable
public Table getTable()
Table of the owner entity (the "one" side)
-
isNullable
public boolean isNullable()
- Specified by:
isNullable
in interfaceValue
-
isSimpleValue
public boolean isSimpleValue()
- Specified by:
isSimpleValue
in interfaceValue
-
isAlternateUniqueKey
public boolean isAlternateUniqueKey()
- Specified by:
isAlternateUniqueKey
in interfaceValue
-
hasFormula
public boolean hasFormula()
- Specified by:
hasFormula
in interfaceValue
-
isValid
public boolean isValid(Mapping mapping) throws MappingException
- Specified by:
isValid
in interfaceValue
- Throws:
MappingException
-
getReferencedEntityName
public java.lang.String getReferencedEntityName()
-
setReferencedEntityName
public void setReferencedEntityName(java.lang.String referencedEntityName)
Associated entity on the "many" side
-
setTypeUsingReflection
public void setTypeUsingReflection(java.lang.String className, java.lang.String propertyName)
- Specified by:
setTypeUsingReflection
in interfaceValue
-
accept
public java.lang.Object accept(ValueVisitor visitor)
-
isSame
public boolean isSame(OneToMany other)
-
getColumnInsertability
public boolean[] getColumnInsertability()
- Specified by:
getColumnInsertability
in interfaceValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()
- Specified by:
getColumnUpdateability
in interfaceValue
-
getNotFoundAction
public NotFoundAction getNotFoundAction()
-
setNotFoundAction
public void setNotFoundAction(NotFoundAction notFoundAction)
-
isIgnoreNotFound
public boolean isIgnoreNotFound()
-
setIgnoreNotFound
public void setIgnoreNotFound(boolean ignoreNotFound)
-
-