Hello,
My question is about invalidation of the second cache level in jpa implementation (and hibernate).
I have an object which is coming from my client (ajax). This object contains a collection which has been modified in the client side.
When the object returns from the client side, I reattach it by calling merge() on it. All items of the collection that has been added are added to the database but the cache is not modified (probably because an implicit add on the collection does not occur in a server transaction but in client side)
What's the best approach to synchronize the cache with the database in this case ?
Thanks !
|