Mar 10th, 2010, 11:07 PM
HibernateTemplate.find(query) sometimes return only one result
In my project I am using Hibernate and Spring.
Sometimes when I fire a query it returns more than one record but sometimes it is returning only one record. And when one record returns after that all queries fired will return only one record.
I am using HibernateTemplate.find(query).
But if I restart the server it again seems to work fine and returns multiple records
Some type of help is appreciated.
Last edited by vinodkashyap; Mar 10th, 2010 at 11:24 PM.
May 13th, 2011, 10:24 PM
Have you find the reason, and how to resolve it?
I'm facing the exactly the same problem, could you please share you findings on how to resolve the problem.
May 14th, 2011, 04:18 AM
Can you provide some code and how you have configured your connections?
May 20th, 2011, 12:05 AM
problem is resolved.
it is nothing to do with hibernate/Spring, but the inexperienced developer, who was using the HibernateTemplate in the wrong way. Sorry for the false alarm.
Mar 10th, 2012, 01:18 AM
and how did you fix this?
for me it's same, after update its not the matter, but after insert hibernate return only one row result
Tags for this Thread