hibernate merge方法返回对象没有id 用save方法可以得到,a different object with the same identifier value was already associated with the session该异常先session.clear()一下,再操作。