Hibernate version: 2.0
I am hitting a serious problem with Hibernate, whereby old data reappears in a table.
I am using Struts together with Hibernate with JSPs in a JBoss environment.
The bug is fairly easily reproduced. Some data from a table is displayed in a table and the user can edit it. The changes are submitted and one can see the data is correctly updated in the database (as Hibernate sunchronises it correctly). One redisplays the table and can see the data has been updated correctly. Another row is changed and an error is deliberately introduced which will fail in server-side validation. When the table is redisplayed with an error message, the row which had previously been correctly updated now displays the original data. Note that the database continues to show the correct version of the data.
Since the database is correct this strongly suggests that an object has been held in a cache somewhere and has not been synchronised correctly.
I have this behaviour in at least two separate processes in the system.
Has anyone experienced this problem, or has anyone a suggestion as to what may be causing it?
Thanks
|