Description: 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
- [wap] - This is a complete source wap project de
File list (Check if you may need any files):
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