Aug 19th, 2009, 02:21 PM
not fetching database records
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?
Tags for this Thread