当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
OneToMany (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.mapping
Class OneToMany
java.lang.Object
net.sf.hibernate.mapping.OneToMany
- All Implemented Interfaces:
- Value
- public class OneToMany
- extends Object
- implements Value
A mapping for a one-to-many association
- Author:
- Gavin King
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneToMany
public OneToMany(PersistentClass owner)
throws MappingException
getEntityType
public EntityType getEntityType()
setType
public void setType(EntityType type)
getAssociatedClass
public PersistentClass getAssociatedClass()
setAssociatedClass
public void setAssociatedClass(PersistentClass associatedClass)
createForeignKey
public void createForeignKey()
- Specified by:
createForeignKey in interface Value
getColumnIterator
public Iterator getColumnIterator()
- Specified by:
getColumnIterator in interface Value
getColumnSpan
public int getColumnSpan()
- Specified by:
getColumnSpan in interface Value
getFormula
public Formula getFormula()
- Specified by:
getFormula in interface Value
getOuterJoinFetchSetting
public int getOuterJoinFetchSetting()
- Specified by:
getOuterJoinFetchSetting in interface Value
getTable
public Table getTable()
- Specified by:
getTable in interface Value
getType
public Type getType()
- Specified by:
getType in interface Value
isNullable
public boolean isNullable()
- Specified by:
isNullable in interface Value
isSimpleValue
public boolean isSimpleValue()
- Specified by:
isSimpleValue in interface Value
isUnique
public boolean isUnique()
- Specified by:
isUnique in interface Value
isValid
public boolean isValid(Mapping mapping)
throws MappingException
- Specified by:
isValid in interface Value
- Throws:
MappingException