Hibernate + Spring + session + cache
Posted
by
andromeda
on Stack Overflow
See other posts from Stack Overflow
or by andromeda
Published on 2012-06-30T11:21:17Z
Indexed on
2012/06/30
15:16 UTC
Read the original article
Hit count: 141
We are using Hibernate with Spring for our Java application. We find out that when a session update something in database other sessions can not see the update. For example user1 get the account balance from database then user2 increase the balance , if user1 get the object another time he see the account balance before updating (seems that session use the value from its cache) but we want to get the updated object with new account balance. User1 use one session during all activity that is different from user2 session. Is any configuration to force to get the updated object from database? or any other help?
© Stack Overflow or respective owner