类 OneToMany
- java.lang.Object
-
- org.hibernate.mapping.OneToMany
-
- 所有已实现的接口:
Serializable,Value
public class OneToMany extends Object implements Value
A mapping for a one-to-many association- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 OneToMany(MetadataBuildingContext buildingContext, PersistentClass owner)OneToMany(MetadataImplementor metadata, PersistentClass owner)已过时。UseOneToMany(MetadataBuildingContext, PersistentClass)instead.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectaccept(ValueVisitor visitor)voidcreateForeignKey()PersistentClassgetAssociatedClass()boolean[]getColumnInsertability()Iterator<Selectable>getColumnIterator()intgetColumnSpan()boolean[]getColumnUpdateability()FetchModegetFetchMode()StringgetReferencedEntityName()ServiceRegistrygetServiceRegistry()TablegetTable()Table of the owner entity (the "one" side)TypegetType()booleanhasFormula()booleanisAlternateUniqueKey()booleanisIgnoreNotFound()booleanisNullable()booleanisSame(OneToMany other)booleanisSame(Value other)booleanisSimpleValue()booleanisValid(Mapping mapping)voidsetAssociatedClass(PersistentClass associatedClass)Associated entity on the many sidevoidsetIgnoreNotFound(boolean ignoreNotFound)voidsetReferencedEntityName(String referencedEntityName)Associated entity on the "many" sidevoidsetTypeUsingReflection(String className, String propertyName)
-
-
-
构造器详细资料
-
OneToMany
@Deprecated public OneToMany(MetadataImplementor metadata, PersistentClass owner) throws MappingException
已过时。UseOneToMany(MetadataBuildingContext, PersistentClass)instead.- 抛出:
MappingException
-
OneToMany
public OneToMany(MetadataBuildingContext buildingContext, PersistentClass owner) throws MappingException
- 抛出:
MappingException
-
-
方法详细资料
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- 指定者:
getServiceRegistry在接口中Value
-
getAssociatedClass
public PersistentClass getAssociatedClass()
-
setAssociatedClass
public void setAssociatedClass(PersistentClass associatedClass)
Associated entity on the many side
-
createForeignKey
public void createForeignKey()
- 指定者:
createForeignKey在接口中Value
-
getColumnIterator
public Iterator<Selectable> getColumnIterator()
- 指定者:
getColumnIterator在接口中Value
-
getColumnSpan
public int getColumnSpan()
- 指定者:
getColumnSpan在接口中Value
-
getFetchMode
public FetchMode getFetchMode()
- 指定者:
getFetchMode在接口中Value
-
getTable
public Table getTable()
Table of the owner entity (the "one" side)
-
isNullable
public boolean isNullable()
- 指定者:
isNullable在接口中Value
-
isSimpleValue
public boolean isSimpleValue()
- 指定者:
isSimpleValue在接口中Value
-
isAlternateUniqueKey
public boolean isAlternateUniqueKey()
- 指定者:
isAlternateUniqueKey在接口中Value
-
hasFormula
public boolean hasFormula()
- 指定者:
hasFormula在接口中Value
-
isValid
public boolean isValid(Mapping mapping) throws MappingException
- 指定者:
isValid在接口中Value- 抛出:
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)
- 指定者:
setTypeUsingReflection在接口中Value
-
accept
public Object accept(ValueVisitor visitor)
-
isSame
public boolean isSame(OneToMany other)
-
getColumnInsertability
public boolean[] getColumnInsertability()
- 指定者:
getColumnInsertability在接口中Value
-
getColumnUpdateability
public boolean[] getColumnUpdateability()
- 指定者:
getColumnUpdateability在接口中Value
-
isIgnoreNotFound
public boolean isIgnoreNotFound()
-
setIgnoreNotFound
public void setIgnoreNotFound(boolean ignoreNotFound)
-
-