| Hai,
Iam having a problem working with hibernate. My issue is this.
 
 Say I have a Company object called C.
 
 I have three Employee objects internally say  E1 (Employee 1), E2( Employee2) and M1(Manager 1).
 
 Now C has one Manager object inside it, i.e., M1.
 
 M1 internally has E1 and E2.
 
 
 Now all the three Employee Objects has various Achievements Objects associated with it.
 
 
 This is the picture of the graph. Now If i delete E1 from the graph and Added E3 into it. I've also added and deleted certain achievements from the Employee Objects.
 
 I do all of these outside a transaction, say at the UI Level. Finally When I pass the Company Object for updating, I get theis errorhibernate Optimistic Locking Exception.
 
 
 Now how do i get rid of this. I've tried all combinations with select-before-update, dynamic-update, optimistic-locking. Still I cannot get this thing to work.
 
 Why doesn't hibernate just delte the rows which are not present and add new rows which is present in th Object graph. It's not updating.
 
 Please reply, if you cannot understand my message. I'll try rephrasing it.
 :-)
 _________________
 Please vote if my Postings helps. :-)
 
 
 |