本月博客排行
-
第1名
wy_19921005 -
第2名
benladeng5225 -
第3名
duanfei - steven789654
- wddpwzzhao123
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
wy_19921005 - benladeng5225
- kaizi1992
- tanling8334
- vipbooks
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- e_e
- jh108020
- ganxueyun
- Xeden
- xyuma
- wangchen.ily
- zhanjia
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- javashop
- lzyfn123
- sunj
- yeluowuhen
- ajinn
- lerf
- lemonhandsome
- chenqisdfx
- xiaoxinye
- lyndon.lin
- flashsing123
- bosschen
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
- 青否云后端云
- hudiemeng870329
- mft8899
最新文章列表
异常:org.hibernate.ObjectNotFoundException:No row with the given identifier exists
今天在项目的开发中遇到了一个异常,如下:
org.hibernate.ObjectNotFoundException: No row with the given identifier exists
在网上找了一下原因,主要原因是,一个表中存在数据,而他的关联表中却不存在数据。
产生此问题的原因抄录如下:
产生此问题的原因: 有两张表,table1和table2.产生此 ...
No row with the given identifier exists
org.hibernate.ObjectNotFoundException: No row with the given identifier exists
发生这个错误的原因是: 数据库中没有建外键关联,但是实体对象建了一对多关系,当被引用的表数据删除之后,引用它的对象加载的时候就会发生找不到的错误。
org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
产生该问题的原因:http://blog.csdn.net/eyejava/article/details/1896492
解决:
原来的配置:<many-to-one class="com.art.model.user.UserInfo" fetch="join" name="userInfo" > <co ...