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: Criteria setCacheable
PostPosted: Wed Jun 15, 2011 1:48 pm 
Newbie

Joined: Tue Jun 14, 2011 2:17 pm
Posts: 1
Hello all,

We had a couple of queries with reference to our implementation of a project using hibernate.

We are inserting a new book record into the BOOK TABLE and the associated tables during runtime of our application.
Once inserted we are using
Code:
criteria.setcacheable(true).list();

for retrieving the data from the BOOK TABLE and displaying the contents.

However, when the concerned URL is accessed the first time we have the value retrieved and displayed properly. But, on refreshing the page. we get a null pointer exception , stating the AUTHOR_SECTION_MAPPING object is not present in BOOK_SECTIONMAPPING set inside BOOK TABLE hbm.xml

Mapping structure is as follows:
http://imageshack.us/photo/my-images/202/mappingstructure.jpg

The oscache refresh rate is 86400 and the problem doesn't exist once the cache is refreshed.

Can someone please help us.

Thanks
Suraj


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.