-->
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: Cache Hell
PostPosted: Tue Jan 08, 2013 1:04 pm 
Newbie

Joined: Tue Jan 08, 2013 12:59 pm
Posts: 2
Hi all,
we have just made a massive upgrade for our web application - jumped from jboss 4 to jboss 7.
we have also moved from hibernate 3 to hibernate 4.

I have encountered this weird behavior (which did not happen under hibernate 3):
1. I run an hql (lets say the hql filters the status field - status = 1) and get one object back.
2. I change its status to 2.
3. I run the hql again and get the same object (its even the same instance - with the changed status!) - which does not match the criteria anymore!

can someone help?


Top
 Profile  
 
 Post subject: Re: Cache Hell
PostPosted: Wed Jan 09, 2013 3:46 am 
Newbie

Joined: Tue Jan 08, 2013 12:59 pm
Posts: 2
I found out that the problem is that the session is not flushed automatically before the query, this is weird because the session has flushmode.auto.

can someone help?


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.