Package org.hibernate.mapping
Class OneToMany
- java.lang.Object
-
- org.hibernate.mapping.OneToMany
-
- All Implemented Interfaces:
Serializable,Value
public class OneToMany extends 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
-
-
-
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:
getServiceRegistryin interfaceValue
-
getAssociatedClass
public PersistentClass getAssociatedClass()
-
setAssociatedClass
public void setAssociatedClass(PersistentClass associatedClass)
Associated entity on the many side
-
createForeignKey
public void createForeignKey()
- Specified by:
createForeignKeyin interfaceValue
-
getColumnIterator
public Iterator<Selectable> getColumnIterator()
- Specified by:
getColumnIteratorin interfaceValue
-
getColumnSpan
public int getColumnSpan()
- Specified by:
getColumnSpanin interfaceValue
-
getFetchMode
public FetchMode getFetchMode()
- Specified by:
getFetchModein interfaceValue
-
getTable
public Table getTable()
Table of the owner entity (the "one" side)
-
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
public boolean isValid(Mapping mapping) throws MappingException
- Specified by:
isValidin interfaceValue- Throws:
MappingException
-
getReferencedEntityName
public String getReferencedEntityName()
-
setReferencedEntityName
public void setReferencedEntityName(String referencedEntityName)
Associated entity on the "many" side
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName)
- Specified by:
setTypeUsingReflectionin interfaceValue
-
accept
public Object accept(ValueVisitor visitor)
-
isSame
public boolean isSame(OneToMany other)
-
getColumnInsertability
public boolean[] getColumnInsertability()
- Specified by:
getColumnInsertabilityin interfaceValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()
- Specified by:
getColumnUpdateabilityin interfaceValue
-
isIgnoreNotFound
public boolean isIgnoreNotFound()
-
setIgnoreNotFound
public void setIgnoreNotFound(boolean ignoreNotFound)
-
-