您的位置:首页 > 移动开发 > Objective-C

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐