Hi all,
My application is base on Hibernate 3.1.3 (Java 1.4 j2ee 1.3.1 Tomcat 5.5.20) and runs on a "pure load balance system" (session replication). This means that each request get managed from different servers. Hibernate acts as "Session By Request"
The work flow is the follow:
Application load data from DB and save this data in Tomcat session. Data get modified during the navigation and saved in the Tomcat session until the user decided to persist his modifications.
At this point the application get the object from Tomcat session and persist it by SaveOrUpdate function.
The problem is that all childs of the object are saved, but the old values doesn't get deleted also if the mapping is OK. In fact, in single server environment all runs OK.
I understand the cause: The object loaded from DB and the object Saved on DB are different instance of the same object than Hibernate has not able to link the instance and then can't delete old values.
The problem is that I don't know how to resolve the problem ????
Any ideas ?
Best regards
Ale.
|