Browse Hibernate Solutions

1 Solution(s) found
0 ratings
Views 2306
org.hibernate.NonUniqueObjectException while updating my object
Hibernate Error: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session My code : PayScaleBo is my business object class. while editing i created new object ( PayScaleBo payscale = new PayScaleBo(); ) and setting all the fields from formbean including id (payscale.setId(formbean.getId();)) then i am trying to update it through hibernate session.saveOrUpdate(payscale); // from this line i am getting exception