Hello All,
I have a problem with hibernate in multi thread application.
I get parent object from thread session and create new child object, after I run update for parent object. In other thread update this parent object without new child.
If I use find with lock for update ("select for update") it works correctly, but it works by db lock query without any caches and going very slowly.
Is there any solution for solve this problem for getting same object instance in different thread and session from second level cache?
|