Riyad,
Thanks for the response.
Application changing the data in MySQL is a from the one that is reading the data. So, if I read it right, the second option of moving the code to change into Hibernate is not possible.
I tried the following and still get stale data. Let me know if this is the right way to close the session.
AccountInfoDAO dao = new AccountInfoDAO();
Session session = dao.getSession();
db_list = dao.findByPhoneNumber(phoneNumber);
session.close();
In Accountinfo.hbm.xml, I set the caching option read-write. Is this how you turn-off Level 2 caching?
<hibernate-mapping>
<class name=”com.comcast.hibernate.AccountInfo” table=”account_info” catalog=”comcast”>
<cache usage=”read-write” />
Thanks in advance.
-Srini