-->
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: Queries does not recognize data updated/inserted
PostPosted: Wed Feb 18, 2009 1:10 pm 
Newbie

Joined: Wed Feb 18, 2009 12:56 pm
Posts: 5
We have two applications. One of them have been developed using Hibernate (v3.3.1.GA) using Mysql (connector v:5.1.7). The second application is a legacy application. The legacy application inserts rows into mySQL. The hibernate application queries the data to display. But what we find is that the query does NOT pick up the newly updated/inserted data by the legacy application.

I researched for past couple of days and did the following

1. Disabled the secondary cache
2. Disabled the query cache
3. Cleared the session cache by calling session.clear() before executing the query.
4. Removed caching at the transaction scope/ session (calling sessionFactory.opensession(), clearing the cache, querying and closing the session()).

Inspite of all this the newly inserted data by the legacy app, is not picked up. What are we missing here?

If we somehow force the hibernate application to do an update/insert in any tables in the DB, all the changes by the legacy application magically appear (like they are supposed to).


Any help is greatly appreciated.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2009 3:46 pm 
Newbie

Joined: Thu Feb 05, 2009 7:31 pm
Posts: 9
I guess you have done so, but i must ask... have you tried to insert data with your NHibernate based application and retrieve it after? Does it work?


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.