-->
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: Best Way to Update data in a read-only cache?
PostPosted: Tue Nov 14, 2006 1:43 pm 
Newbie

Joined: Mon Jun 21, 2004 2:21 pm
Posts: 7
Location: New York, NY
I have a set of objects/tables mapped as read-only.

I will be asynchronously recieving deltas from the "owning application" when the underlying tables change.

I want to update the data in the cache based on these deltas. The easy way is to, I think, re-read the updated entity with CacheMode.REFRESH.

But since I have the complete delta, it seems a waste to go back to the DB and re-read, since I have all the data I want already.

Using the class and table mappings, and entity persisters, I have been able to directly update the CacheEntry(s), but it seems very brittle.

Is there a straightforward way to get a mapping of database column->index in the CacheEntry's dissasembledState array?

Is there a reason I shouldnt try to do this?


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.