Also i would recommen java saloon for additional orm forum
-----Original Message-----
From: Chris Bredesen <cbredesen(a)redhat.com>
Sent: ג 12 מאי 2009 15:47
To: sridhar veerappan <sriasarch(a)gmail.com>
Cc: hibernate-dev(a)lists.jboss.org
Subject: Re: [hibernate-dev] Database Refresh Issue(Save and query)
Please post this issue on the user forum. This list is for discussion
about the development of Hibernate itself.
-Chris
sridhar veerappan wrote:
Hi,
I am using hibernate 1.2, when I save the data it is getting save in the
database(save) , but immediatly i am(query) checking for the updated
data, I am not getting the refreshed data, getting the old data. After
3-10 seconds, it is getting the new/updated data .
How to solve this issue.
Code snippet:
Save:
sess = HibernateConfigurator.getSessionFactory().openSession();
sess.saveOrUpdate(p_obj);
sess.flush();
Query:
sess = HibernateConfigurator.getSessionFactory().openSession();
List result = sess.find(p_query);
Thanks in Advance
Sridhar
------------------------------------------------------------------------
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev