Session Factory:
hibernate.current_session_context_class=jta
hibernate.cache.use_second_level_cache=false
Transaction: - UserTransaction is used.
getCurrentSession()
of SessionFactory
is used to get Session.
The problem is that I could not force the hibernate to access database to get the new values using Session.get(...)
(it is updated outside) although I used Session.clear()
or Session.evict(…)
or Session.refresh(…)
, SessionFactory.evict(...)
.
It always kept the old values.
Do you have any idea?