Hibernate异常No row with the given identifier exists 解决方法
来源:互联网 发布:pp助手 mac打不开 编辑:程序博客网 时间:2024/05/18 21:41
这个异常是在 多对一关系映射时,一方表中对应的数据不存在才抛出的。
原来的配置:
<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>
红色是修改的部分。意思是当对应的数据不存在时 忽略掉,用null值填充。该属性默认值:exception 。
原来的配置:
<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>
红色是修改的部分。意思是当对应的数据不存在时 忽略掉,用null值填充。该属性默认值:exception 。
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常:No row with the given identifier exists
- Hibernate异常No row with the given identifier exists
- No row with the given identifier exists异常解决
- No row with the given identifier exists 解决方法
- No row with the given identifier exists 解决方法
- No row with the given identifier exists 解决方法(集锦)
- No row with the given identifier exists 解决方法
- No row with the given identifier exists 解决方法
- No row with the given identifier exists 解决方法
- C6000嵌入汇编C与汇编对照及功能说明
- Spotlight on oracle 使用
- linux生成动态库和静态库
- hdu3828动态规划
- Hibernate中常见问题 No row with the given identifier exists问题的原因及解决
- Hibernate异常No row with the given identifier exists 解决方法
- Plone 4.x 学习之创建自定义工具
- Google谷歌权重09年算法
- 程序江湖:第十九章 四季如春的昆明
- HDU 4006 The kth great number [2011 大连网络赛] [AVL树解法]
- 在一个activity中添加多个listview
- Teamcenter 入门开发系列问答(2)
- 段的综述
- Tomcat定时重启sh脚本