-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate doesn't query mannualy inserted data from database
PostPosted: Thu Aug 15, 2013 11:16 am 
Newbie

Joined: Thu Aug 15, 2013 11:13 am
Posts: 1
I'm using an open source application for e-commerce. Application uses hibernate 3. When I add new products manually to the database, hibernate won't query them. Actually it doesn't show new products at the client panel, although it shows them at the admin panel. I can see new products are saved through admin panel, but they are not visible at the client panel. But, when i click save button to save the product on the admin panel (which invokes hibernate to update, event though nothing changes) product get listed at the client panel. Sounds to me like a problem with hibernate caching or something. I have disabled all the caching and lowered connection isolation level persistence.xml (in the e-commerce applicaton) like following:

Code:
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.cache.use_second_level_cache" value="false"/>
<property name="hibernate.cache.use_query_cache" value="false"/>
<property name="hibernate.connection.isolation" value="1"></property>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.