-->
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.  [ 3 posts ] 
Author Message
 Post subject: Query result inconsistency problem
PostPosted: Tue Jun 22, 2004 12:28 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
Hi,

I met a problem that when I try to use createQuery to retrieve the rows from DB, it will go for the temporary objects in the memory or maybe cache instead of retrieving data from the DB. I've changed the configuration to let the hibernate.cache.use_query_cache=false. But it continues to load the wrong objects. Does anyone has any clue to this kind of problems?

My hibernate version is 2.1.4
DB: Oracle 9i

thanks a lot
andre


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 22, 2004 12:58 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
I called session.clear() before creating the query. It seemed to solve the problem. But is there any more elegant way to do that?

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 22, 2004 1:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is a feature.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.