Originally posted by uma prasath:
Is is possible to automatically update the dataobjects in memory (when cached), whenever an update occurs in database by another user?
There is no emoticon for what I am feeling!
Originally posted by uma prasath:
Is is possible to automatically update the dataobjects in memory (when cached), whenever an update occurs in database by another user?
From Hibernate in Action
■ LockMode.UPDGRADE�Bypass both levels of the cache, do a version check
(if applicable), and obtain a database-level pessimistic upgrade lock, if
that is supported.
■ LockMode.UPDGRADE_NOWAIT�The same as UPGRADE, but use a SELECT...FOR
UPDATE NOWAIT on Oracle. This disables waiting for concurrent lock releases,
thus throwing a locking exception immediately if the lock can�t be obtained.
There is no emoticon for what I am feeling!
Originally posted by Jeff Albertson:
I believe the authors of Hibernate In Action took pains to bring this across, too.
There is no emoticon for what I am feeling!
Originally posted by uma prasath:
will hibernate automatically detects data modified by other process (update by user U2)?.
Originally posted by uma prasath:
If i use second level cache (sessionFactory level cache), is it possible to automatically update the cached objects in user U1 session.
There is no emoticon for what I am feeling!
There is no emoticon for what I am feeling!
grapes are vegan food pellets. Eat this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|