1 Reply Latest reply on Feb 15, 2006 12:52 PM by andrew.rw.robinson

    Hibernate bug found

    andrew.rw.robinson

      Query.uniqueResult() method defined as:

      Convenience method to return a single instance that matches the query, or null if the query returns no results.

      But if I execute and don't get a result, hibernate throws a "Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists" instead of returning null as it is documented