Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java EE 综合讨论区
» Hibernate
打印话题 寄给朋友 订阅主题 |
作者 | Help!!! Some problems encountered on Hibernate |
charleszq
发贴: 36 积分: 0 |
于 2003-10-13 22:26
There is an article on TSS entitled 'Introduction to Hibernate'. I downloaded the code of that article and did some test on my own machine. As to the TeamDAOTest class, it creates an instance of 'Team' and puts 2 'Players' in a HashSet and associate the set to the 'Team' instance, then saves the 'Team' into the database. So, there should be a record of team and 2 records of player inserted into the database table. But I found that only one player was there after I run the test case. What should be the problem? I tried several times on different machines, but always get the same result. I use MySQL as the DBMS. Looking forward to your kind reply. Thank you in advance. The code can be downloaded from http://www.systemmobile.com [转帖]面向对象的思维方法 |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
5707 | Help!!! Some problems encountered on Hibernate | charleszq | 744 | 2003-10-13 22:26 |
4706 | Re:Help!!! Some problems encountered on Hibernate | charleszq | 246 | 2003-10-13 23:37 |
4656 | Re:Help!!! Some problems encountered on Hibernate | tasmin | 82 | 2003-10-14 12:00 |
5011 | Re:Help!!! Some problems encountered on Hibernate | charleszq | 83 | 2003-10-14 13:12 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |