Announcement Announcement Module
Collapse
No announcement yet.
HibernateTemplate.find(query) sometimes return only one result Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HibernateTemplate.find(query) sometimes return only one result

    Hi,

    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.

    Thanks,
    Vinod
    Last edited by vinodkashyap; Mar 10th, 2010, 11:24 PM.

  • #2
    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.

    Comment


    • #3
      Can you provide some code and how you have configured your connections?

      Comment


      • #4
        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.

        Comment


        • #5
          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

          Comment

          Working...
          X