Results 1 to 5 of 5

Thread: HibernateTemplate.find(query) sometimes return only one result

  1. #1

    Unhappy 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 at 11:24 PM.

  2. #2
    Join Date
    Jun 2007
    Posts
    26

    Default 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.

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    108

    Default

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

  4. #4
    Join Date
    Jun 2007
    Posts
    26

    Default 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.

  5. #5
    Join Date
    Feb 2012
    Posts
    29

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •