Hi, In my application I have a business entity that needs to include a counter of reads, this counter is the only property in the class that needs to get updated.
I want over the 2nd level cache options and it seems that none of the existing solutions supports the ability to separate the database update call from the commit transaction call.
The optimal solution that I'm looking for is to have Hibernate update the counter in the cache and when the instance get's removed from the cache (let's say after couple of minutes) to update the database (increment the counter).
Any ideas?
Thanks,
Efi
|