Prince Hero

Greenhorn
+ Follow
since May 31, 2020
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Prince Hero

This will help you! I hope

When it is Bidirectional ! Parent class primary key and child class primary key should be same if child class is sharing the Parent's class primary key !
Otherwise you will get

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


If you want update then you have to set same primary to parent and child classes!
So please review mapped entities whether they are having same primary key before hitting the save().