Results 1 to 4 of 4

Thread: HibernateTemplate find problem

  1. #1
    Join Date
    Feb 2006
    Posts
    2

    Default HibernateTemplate find problem

    I am using HibernateTemplate to try and perform a find on my data objects. The method generates the correct SQL and even returns a List of the correct size, but every object in the result is null. Does anyone have any ideas to fix this problem?

    Thanks

  2. #2
    Join Date
    Jul 2005
    Location
    Idaho
    Posts
    231

    Default

    Can you post some pertinent code?

  3. #3
    Join Date
    Feb 2006
    Posts
    2

    Default

    Well, after a little more investigation I may have found the problem. I was reading from an Oracle database. I copied the table to a MySQL database and tried the exact same code again, except for the Hibernate configuration changes, and it worked perfectly.

    Is there a problem with Oracle/Hibernate? (Off to do more research on that...)

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    On the forum there have been several issues, mainly the correct HB dialect was not used or the oracle jdbc driver has some issues (did not match the native libraries for example).,
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

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