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 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923768#3923768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923768 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
