javaFrame
a627371545
这个作者很懒,什么都没留下…
展开
-
hibernate
把开发过程中碰到的BUG累积下来也是一笔财富。 Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 不注意的话,还真的有点无所适从,Batch update returned unexpected row count from update [0]; actua原创 2013-07-05 17:29:54 · 282 阅读 · 0 评论 -
hibernate小结
映射: 单向多对一就是在多的里面设一个一的对象; 单向一对多就是在一的里面设一个多的集合(注意此时多的里面要有一个与外键有关的属性); 单向关系都非常简单,这里只贴出双向一对多的代码(将单向一对多和单向多对一合并所得) District.xml原创 2013-07-05 18:02:10 · 303 阅读 · 0 评论