Hi,

I’m facing a peculiar problem!

I’m using Hibernate AnnotationSessionFactoryBean for persistence along with annotation-driven transaction-manager in my application. When I insert data in database (MySQL), data does get persisted and I can verify this using a database browser such as HeidiSQL but when my application queries the database using syntax such as
getHibernateTemplate().find("from Response ");
inserted data are not fetched!

If I try the same operation after restarting Tomcat, it fetches the inserted data!!

Any idea what’s going on here and how I can fix this behavior?

Thanks