org.hibernate.ObjectNotFoundException: No row with the given identifier exists
2014-04-18 18:03
567 查看
org.hibernate.ObjectNotFoundException: No row with the given identifier exists
解决:原来的配置:
<many-to-one class="com.art.model.user.UserInfo" fetch="join" name="userInfo" ><column name="userId" unique="true"/>
</many-to-one>
修改后的:
<many-to-one class="com.art.model.user.UserInfo" fetch="join" name="userInfo"not-found="ignore">
<column name="userId" unique="true"/>
</many-to-one>
如果使用注解not-found="ignore" 换成 @NotFound(action=NotFoundAction.IGNORE)
转载自:http://hi.baidu.com/270460591/item/959f101adca704e2ddeeca2b
相关文章推荐
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.facekee.cms.entity.CmsFansgroup#195]
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.itcast.erp.auth.
- Hibernate报错:org.hibernate.ObjectNotFoundException: 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
- org.hibernate.ObjectNotFoundException: 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
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.zero.space.entity.TblJd#38]解决方法
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.chint.model.bas.Vendor#
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.gaidea.ptims.po
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: 原因
- 【hibernate】错误org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- (已解决)org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- 【hibernate】org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- 【hibernate】关于org.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题