站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

ManyToOne (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.mapping
Class ManyToOne

java.lang.Object
  extended bynet.sf.hibernate.mapping.SimpleValue
      extended bynet.sf.hibernate.mapping.ToOne
          extended bynet.sf.hibernate.mapping.ManyToOne
All Implemented Interfaces:
Fetchable, Value

public class ManyToOne
extends ToOne

A many-to-one association mapping

Author:
Gavin King

Field Summary
 
Fields inherited from class net.sf.hibernate.mapping.ToOne
referencedPropertyName
 
Constructor Summary
ManyToOne(Table table)
           
 
Method Summary
 void createForeignKey()
           
 void setTypeByReflection(Class propertyClass, String propertyName)
           
 
Methods inherited from class net.sf.hibernate.mapping.ToOne
getOuterJoinFetchSetting, getReferencedPropertyName, setOuterJoinFetchSetting, setReferencedPropertyName
 
Methods inherited from class net.sf.hibernate.mapping.SimpleValue
addColumn, createForeignKeyOfClass, createIdentifierGenerator, getColumnIterator, getColumnSpan, getConstraintColumns, getForeignKeyName, getFormula, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getType, isNullable, isSimpleValue, isUnique, isValid, setForeignKeyName, setFormula, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setType, setUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManyToOne

public ManyToOne(Table table)
          throws MappingException
Method Detail

setTypeByReflection

public void setTypeByReflection(Class propertyClass,
                                String propertyName)
                         throws MappingException
Specified by:
setTypeByReflection in class ToOne
Throws:
MappingException

createForeignKey

public void createForeignKey()
Specified by:
createForeignKey in interface Value
Specified by:
createForeignKey in class ToOne