`
dongchen916
  • 浏览: 40832 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类

解决 a different object with the same identifier value was already

阅读更多
我的这个操作主要是这个流程
1 当前有条记录 record 1
2 显示查询在这个表中有没有这一项
3 如果没有的话就把record 1插入到表中
结果 我在第二部判断的时候 没有吧第三部放在判断后的执行体里面 而是放在了外面 就出现了这个错误
是看了网上的一个帖子得到的灵感 感谢一下!!!(虽然说我这个问题实在是太白痴了)


http://achievo-bruce-126-com.iteye.com/blog/218369
分享到:
评论

相关推荐

    hibernate常见异常

    a different object with the same identifier value was already associated with the session 是一种常见的异常,通常是由于在 Hibernate 中同一个 session 里面有了两个相同标识但是是不同实体所致。解决方案有...

    hibernate常见问题及处理.doc

    5. `a different object with the same identifier value was already associated with the session` 这个异常表明在同一个Hibernate Session中存在两个具有相同标识但实际是不同对象的情况。处理方法有: - 使用`...

    计算机网络第六版答案

    In these systems, packets are transmitted over the same wireless infrastructure used for cellular telephony, with the base station thus being managed by a telecommunications provider. This provides ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: The value of some string flex-properties that began with a parenthese or curly bracket had no apostrophe at the end; that caused an error when reading. (fixed TPropList.SavePropValue for the ...

    微软内部资料-SQL性能优化3

    Another type of table lock is a schema stability lock (Sch-S) and is compatible with all table locks except the schema modification lock (Sch-M). The schema modification lock (Sch-M) is incompatible ...

    微软内部资料-SQL性能优化5

    Each index row in node pages contains an index key (or set of keys for a composite index) and a pointer to a page at the next level for which the first key value is the same as the key value in the ...

    VclZip pro v3.10.1

    This was due to a problem where it would be freed automatically if there was a problem with the ArchiveStream when trying to open it as a zip file (possibly corrupt). Best practice is that ...

Global site tag (gtag.js) - Google Analytics