文件名称:hibernateone-to-many
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
hibernate一对多双向关联映射
一对多双向关联映射的方法
在"一"一端的集合中使用<key>标签,在对方表中加入一个外键指向"一"端
在"多"的一端采用<many-to-one>
注意:<key>标签指定的外键字段必须和<many-to-one>指定的外键一至,否则引用字段的错误
inverse和cascade
inverse是关联关系的控制方向;
cascade操作上的连锁反应-hibernate one-to-many two-way one-to-many association mapping method of mapping a two-way link in the " one" end the use of a collection of <key> Tag, add in the other table a foreign key point to " one" side in the " many" end the use of <many-to-one> Note: <key> Tags designated foreign key field must be <many-to-one> Designated foreign key to one, otherwise the error quoted field and cascade inverse is the inverse correlation between the direction of the control cascade operation of the knock-on effect
一对多双向关联映射的方法
在"一"一端的集合中使用<key>标签,在对方表中加入一个外键指向"一"端
在"多"的一端采用<many-to-one>
注意:<key>标签指定的外键字段必须和<many-to-one>指定的外键一至,否则引用字段的错误
inverse和cascade
inverse是关联关系的控制方向;
cascade操作上的连锁反应-hibernate one-to-many two-way one-to-many association mapping method of mapping a two-way link in the " one" end the use of a collection of <key> Tag, add in the other table a foreign key point to " one" side in the " many" end the use of <many-to-one> Note: <key> Tags designated foreign key field must be <many-to-one> Designated foreign key to one, otherwise the error quoted field and cascade inverse is the inverse correlation between the direction of the control cascade operation of the knock-on effect
(系统自动生成,下载前可以参看下载内容)
下载文件列表
hibernate1216one2m2
...................\.classpath
...................\.project
...................\bin
...................\...\com
...................\...\...\xt
...................\...\...\..\hibernate
...................\...\...\..\.........\Classes.class
...................\...\...\..\.........\Classes.hbm.xml
...................\...\...\..\.........\exportDB.class
...................\...\...\..\.........\one2manyTest.class
...................\...\...\..\.........\Student.class
...................\...\...\..\.........\Student.hbm.xml
...................\...\...\..\.........\utils
...................\...\...\..\.........\.....\hibernateUtils.class
...................\...\hibernate.cfg.xml
...................\...\log4j.properties
...................\src
...................\...\com
...................\...\...\xt
...................\...\...\..\hibernate
...................\...\...\..\.........\Classes.hbm.xml
...................\...\...\..\.........\Classes.java
...................\...\...\..\.........\Student.hbm.xml
...................\...\...\..\.........\Student.java
...................\...\...\..\.........\utils
...................\...\...\..\.........\.....\hibernateUtils.java
...................\...\hibernate.cfg.xml
...................\...\log4j.properties
...................\test
...................\....\com
...................\....\...\xt
...................\....\...\..\hibernate
...................\....\...\..\.........\exportDB.java
...................\....\...\..\.........\one2manyTest.java
...................\.classpath
...................\.project
...................\bin
...................\...\com
...................\...\...\xt
...................\...\...\..\hibernate
...................\...\...\..\.........\Classes.class
...................\...\...\..\.........\Classes.hbm.xml
...................\...\...\..\.........\exportDB.class
...................\...\...\..\.........\one2manyTest.class
...................\...\...\..\.........\Student.class
...................\...\...\..\.........\Student.hbm.xml
...................\...\...\..\.........\utils
...................\...\...\..\.........\.....\hibernateUtils.class
...................\...\hibernate.cfg.xml
...................\...\log4j.properties
...................\src
...................\...\com
...................\...\...\xt
...................\...\...\..\hibernate
...................\...\...\..\.........\Classes.hbm.xml
...................\...\...\..\.........\Classes.java
...................\...\...\..\.........\Student.hbm.xml
...................\...\...\..\.........\Student.java
...................\...\...\..\.........\utils
...................\...\...\..\.........\.....\hibernateUtils.java
...................\...\hibernate.cfg.xml
...................\...\log4j.properties
...................\test
...................\....\com
...................\....\...\xt
...................\....\...\..\hibernate
...................\....\...\..\.........\exportDB.java
...................\....\...\..\.........\one2manyTest.java