hibernate
yuli001123
这个作者很懒,什么都没留下…
展开
-
hibernate映射关系问题
No row with the given identifier exists: [activity.model.Activity#2] 一对多和多对一关系,对应的activity表中的id号2不存在才导致出错的。原创 2012-04-10 11:38:23 · 56 阅读 · 0 评论 -
Batch update returned unexpected row count from update [0]; actual row count: 0;
详细异常信息如下: Exception in thread "main" org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.hibernate.jdbc...原创 2012-04-11 13:44:49 · 121 阅读 · 0 评论 -
object references an unsaved transient instance - save the transient instance be
异常1:not-null property references a null or transient value解决方法:将“一对多”关系中的“一”方,not-null设置为false(参考资料:http://www.thearcmind.com/confluence/pages/viewpage.action?pageId=212)异常2:org.hibernate.Transi...2013-05-12 10:40:49 · 290 阅读 · 0 评论 -
hibernate映射关系bug
No row with the given identifier exists: [activity.model.Activity#2] 一对多和多对一关系,对应的activity表中的id号2不存在才导致出错的。原创 2013-05-14 15:14:20 · 92 阅读 · 0 评论