hibernate NonUniqueObjectException 一个session中存有两个识别码(id)相同的对象

解决办法:getCurrentSession().clear();  

清除当前session中重复的对象