No row with the given identifier exists异常解决
2010-03-02 09:31
381 查看
因业务需求,删除了权限表里的两条记录,这一删除不要紧,在查询角色列表时报错:
No row with the given identifier exists
解决办法:
因为权限表和角色表是多对多的关系,它们之间有一个中间表,我把权限表里的两条记录删除了,而拥有此权限的角色在中间表里的记录并未删除,所以在查询角色列表时报此错误,于是就在中间表里查找,删除后问题解决。
在思考解决办法时,也在网上查找了一些资料,写的比较详细。下面链接是我查到的资料:
http://blog.csdn.net/eyejava/archive/2007/11/21/1896492.aspx
No row with the given identifier exists
解决办法:
因为权限表和角色表是多对多的关系,它们之间有一个中间表,我把权限表里的两条记录删除了,而拥有此权限的角色在中间表里的记录并未删除,所以在查询角色列表时报此错误,于是就在中间表里查找,删除后问题解决。
在思考解决办法时,也在网上查找了一些资料,写的比较详细。下面链接是我查到的资料:
http://blog.csdn.net/eyejava/archive/2007/11/21/1896492.aspx
相关文章推荐
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate异常No row with the given identifier exists 解决方法
- Hibernate3.x异常No row with the given identifier exists 解决方法
- No row with the given identifier exists 解决方法(集锦)
- Hibernate常见问题 No row with the given identifier exists问题的解决办法及解决
- Hibernate异常:No row with the given identifier exists
- 关于org.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题
- (转)No row with the given identifier exists问题的解决
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.zero.space.entity.TblJd#38]解决方法
- 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问题的原因及解决
- (已解决)org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists解决办法
- hibernate中出现No row with the given identifier exists问题的解决办法
- 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问题的原因及解决 .