对象关系映射—Hibernate 作者:钱安川( Moxie)知识课件.pptVIP

  • 1
  • 0
  • 约1.26万字
  • 约 53页
  • 2020-01-14 发布于天津
  • 举报

对象关系映射—Hibernate 作者:钱安川( Moxie)知识课件.ppt

3.2、自定义类-one-to-one 一对一关联:主键关联和惟一外键关联两种方式。 例子:User-IdCard(外键关联) class name= com.test.hibernate .User table=TBL_USER id name=id column=userIdgenerator class=native//id many-to-one name=“idCard” column=“idCardId” outer-join=false“ unique=“true”/ /class class name=com.test.hibernate.IdCard table=TBL_IDCARD id name=id column=idCardIdgenerator class=native//id /class 4、集合-Set set name=propertyName (1) table=table_name (2) lazy=true|false (3) inverse=true|

文档评论(0)

1亿VIP精品文档

相关文档