Quote:
In Hibernate 2.0.3 (I just switched to the 2.1beta6), I found my session.find() results were being cached. I did the same queries a few time but, in between, I updated the MySQL table manually. Every time I went back to that web page, the find() returned the same cached results, not the new information from the database. Adding
'Transaction tx = session.beginTransaction()' forced it to go to the database every time and pull the current results. Odd.
You are mistaken.
(Unless your database is in serializable isolation mode or something.)
Hibernate 2.1 adds a query cache, but this is disabled by default.