See attached maven project
In the run() method, there are two lines commented (1) and (2). As it stands, the 3rd child does not get persisted. If you comment out line (1), the 3rd child is persisted. Comment it out again and uncomment (2), the 3rd child gets persisted.
Why does the reload of the Parent object in the run() method cause its Children collection not to be saved on a call to saveOrUpdate()?
|