-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem updating data
PostPosted: Wed Mar 08, 2006 5:11 pm 
Newbie

Joined: Fri Nov 25, 2005 9:01 am
Posts: 4
I am having trouble updating data on a web page. I am using AJAX to call a servlet which in turn uses hibernate. My problem is when the data is changed in the database (at the minute this is only done manually with sql scripts), it is not changed in the results of the hibernate queries, so its showing "old" data.

In fact I aslo noticed if i navigate away from the page and then revisit (ie reload the whole page not just an AJAX request) the data is still not updated. The only way its update is by restarting the server! :( Surely Im doing something wrong here!

Does anyone have any ideas where I'm going wrong. My only thoughts are something to do with caching but I'm new to hibernate and could do with some pointers.

Thanks


Hibernate version 3.1 rc3

Database MS SQL Express

Server JBoss 4.0.3


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 6:04 pm 
Regular
Regular

Joined: Tue Mar 07, 2006 11:18 am
Posts: 54
Location: Berlin
Hi,

could you post some more information about your code,mapping etc.
Whats about your session, do you open it for the action you are want to perform on hibernate or you open a session for your request?

Where is the session closed, flushed? Whats about transactions?
Are you using a cache?

see this:

http://www.hibernate.org/ForumMailinglists/HowToAskForHelp


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

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.