-->
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: Need HELP in Impelementing Caching Mechanism...!!!!!!
PostPosted: Tue Jan 10, 2012 12:02 am 
Newbie

Joined: Sun Mar 20, 2011 2:36 am
Posts: 7
Hello Sir,

I have configured 2nd level Caching using Hibernate Annotations in my persistent entity clases.

BUT My Requirement was :

My database tables are only ready only tables jsut for first time reference purpose when the user logs in for the first time.
I don't want it to be changed by any of the users while they update the state of their entity clases and persist them through the provided user interface(UI) screen...

In Other words, data will be fetched by hitting the database and stored in entity classes only the 1st time when user logs in.

After that, what ever changes the user is doing, to that data, it should be only updated in the user cache (my second level cache).. but not in the database table......

Is it possible to achieve this through Hibernate or any other ORM tools to only update cache and not Database tables??????

Is it possible to use any Cache Provider API's (like EhCache) to acheive the above desired result.??????

Is it possible to implement the methods of EntityManagerFactory and change them and make them update only Cache(and skip database table updation)
or Are there any configurations that can be done in the Hibernate.cfg/persistent.xml file to acheive the above desired behavior for caching .....!


KINDLY HELP.!!
THANKS.!!!


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.