-->
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: Newbie : sorry but i don't unsterstand why !!!
PostPosted: Mon Jun 27, 2005 9:14 am 
Newbie

Joined: Mon Jun 27, 2005 9:08 am
Posts: 1
Hi ... i'm a new user.
I use Hibernate 2 and all work perfectly ....
Now i have a problem and i don't be able to understand ...

the new GUI of my application (Struts/Spring/Hibernate) ... show the last insert of each table ... but :

if i insert a record in the table and immediatly make a select on table, i don't see the last record that i've inserted ...

Someone can you help me ???
Thanx in advance
Fabie


Top
 Profile  
 
 Post subject: Session flush
PostPosted: Thu Jun 30, 2005 4:59 am 
Newbie

Joined: Tue Sep 21, 2004 10:09 am
Posts: 5
Location: Rome, Italy
Hi,

try invoking Session.flush() after the insert.

Bye


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.