I am using Hibernate 2.1.4 and I am noticing a weird behavior from something that I believe I must have done wrong. As I understand session.find should return results directly from the DB and not from the cache. I am returning a list of results by the following:
Iterator iter = session.find("from com.scottrade.nagios.hibernate.Hoststatus host").iterator();
I am using that instead of session.iterate because I do not want to use the cache. The reason is that the database is being written to by another application and I want to read in the fresh data. In this case, that is not occurring.
Is there something that I am missing?
Thank you,
Andrew Janian
OMS Developer
Scottrade Financial Services
ajanian@scottrade.com