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.jpgThe oscache refresh rate is 86400 and the problem doesn't exist once the cache is refreshed.
Can someone please help us.
Thanks
Suraj