-
a different object with the same identifiervalue was already associated withthesession 问题的解决:
Copy the state of the given objectonto the persistent object with the sameidentifier.
将给定对象的state(状态,即实例属性)拷贝给到具有相同id的持久化对象
If there is no persistent instance currently associated with thesession, it will be loaded. Return the persistent instance.
如果当前没有持久化对象关联到session,当前对象会被加载为持久化对象,并(在update后)返回持久化对象
If the given instance is unsaved, save a copy of and return it as anewly persistent instance. The given instance does not becomeassociated with the session.
如果给定实例还没存盘,就存一份copy,并且(这份)copy返回作为新的持久化对象. 而给定的对象不会再关联到session
转载于:http://blog.sina.com.cn/s/blog_6151984a0100kgsz.html