-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Dirty objects being represented
PostPosted: Wed Jan 12, 2005 5:38 am 
Newbie

Joined: Mon Dec 20, 2004 11:36 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.