Hi,
I am getting below exception : it is a simple ans straight one=to-many relation ship
org.hibernate.HibernateException: identifier of an instance of StudetUSer was altered from 8a9e82a423e259da0123e25ae4570003 to null
Code:
User user=new USer();
StudentUser su=new StudentUSer();
Student s=new student();
s.setName("s1");
....
su.setstudent(s);
Set studentSet=new HashSet();
studentSet.setStudentUser(su);
user.setStudents(studentSet);
it is simple relation ship, i am no wrae altering PK of Student User
plesae help me out.