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?
|