Madan Prabhu Durai

Greenhorn
+ Follow
since Nov 11, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Madan Prabhu Durai

By using session.evict and sessionFactory.evict methods. in addition to that call twice the retrieve code for your data.
ya using setFirstResult and setMaxResults methods..
like this
Query q = session.createQuery("...");
q.setFirstResult(start);
q.setMaxResults(length);

For detail info, check this link
http://www.javalobby.org/java/forums/t63849.html
Hi Friends!
My problem as follows.,
In my project, we had the form used to display and edit user profile information. When users edit the form the values are updated to the database then i have to display the updated info on the form.
when i retrieve the updated value from DB through HQL, it retrieves only old data. But the DB has updated values..

we are using hibernate3.1 and mysql5.
i don't enable hibernate caching in hibernate.cfg.xml file.

i already tried session.evict and sessionFactory.evict methods. but no use, till now it retrieve only old values...