2012年2月3日

Hibernate异常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&q 阅读全文

posted @ 2012-02-03 18:33 天天向上的博客 阅读(362) 评论(0) 推荐(0)

导航