-->
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: data can't be refresh after DB update
PostPosted: Fri Apr 21, 2006 6:02 am 
Newbie

Joined: Wed Apr 19, 2006 11:21 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Hi , everybody! I met a problem that the homepage's data can't be refresh after DB update, the detial is I made the first page to display the data list , and after select the one record of this list ,it will go to the second page, it's only the one record that i just selected from the front page in this second page, I can do the operation of delete in this page,when i deleted this record sccessfully and return back the first page,the data still be displayed, but this data have been modified in DB.I use STRUTS+HIBERNATE+MYSQL, why ?how can I do? thank you!


Top
 Profile  
 
 Post subject: Check your transaction
PostPosted: Mon Apr 24, 2006 1:14 am 
Newbie

Joined: Mon Feb 27, 2006 2:58 am
Posts: 10
Hi

make sure you commit the transaction and if your session is not associated with any user transaction(say CMT) then do session.flush()


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.