本月博客排行
-
第1名
kaizi1992 -
第2名
wy_19921005 -
第3名
arpenker - hanbaohong
- jh108020
- silverend
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
青否云后端云 - wy_19921005
- benladeng5225
- vipbooks
- kaizi1992
- e_e
- arpenker
- tanling8334
- javashop
- sam123456gz
- zysnba
- fantaxy025025
- xiangjie88
- lemonhandsome
- wallimn
- ganxueyun
- Xeden
- zhanjia
- wangchen.ily
- xyuma
- jh108020
- johnsmith9th
- zxq_2017
- jbosscn
- forestqqqq
- ajinn
- daizj
- xpenxpen
- 喧嚣求静
- silverend
- kingwell.leng
- kristy_yy
- lchb139128
- jveqi
- lzyfn123
- java-007
- sunj
- yeluowuhen
- lerf
- xiaoxinye
- flashsing123
- chenqisdfx
- bosschen
- zhangjijun
- lyndon.lin
- sunnylocus
- lyj86
- paulwong
最新文章列表
异常: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 ...