a different object with the same identifier value was already associated with the session:

该错误是,在一个hibernate的session中,有两个对象(即内存地址不同),但id相同,致使,hibernate不知保存哪一个好导致的。