-->
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: Manual database changes not being reflected in frontend
PostPosted: Thu Mar 22, 2007 12:01 am 
Newbie

Joined: Wed Mar 21, 2007 11:47 pm
Posts: 1
Does anyone know how to solve this problem?
I manually change some data in the DB and hit refresh on the browser but the data does not change in the frontend...
The app server logs are showing the correct select statement again produced by Hibernate and the sql works correctly in the db when I run it. It feels like the data in the frontend is being cached, even though I called session.flush and criteria.setCacheable(false) and sessionFactory.evict(). My hibernate.cfg.xml file is not using 2nd level cache:
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
I even called session.getTransaction and transaction.commit before session.close and it still doesn't work...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 3:03 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
What do you mean by manually? Did you do it with an external tool or with a specific method of yours?

About this:
Quote:
I even called session.getTransaction and transaction.commit before session.close and it still doesn't work...

Calling beginTransaction(), then committing at the end is not an option. It's compulsory to correctly demarcate every tx.

About refreshing from the client side, are you sure you don't cache objects by yourself somewhere? In the http session or somewhere else for example?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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.