[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2903) Friendlier error messages for wrong parameter types in HQL queries
Max Rydahl Andersen (JIRA)
noreply at atlassian.com
Mon Oct 22 15:03:39 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28507 ]
Max Rydahl Andersen commented on HHH-2903:
------------------------------------------
testcase?
> Friendlier error messages for wrong parameter types in HQL queries
> ------------------------------------------------------------------
>
> Key: HHH-2903
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2903
> Project: Hibernate3
> Issue Type: Patch
> Components: core
> Affects Versions: 3.2.5
> Reporter: Marcus Brito
> Attachments: report-wrong-parameter-type.diff
>
>
> The attached patch modifies NamedParameterSpecification and PositionalParameterSpecification to catch any ClassCastExceptions thrown while binding parameters, and rethrow them as QueryParameterExceptions, including a detailed error message containing the parameter name or position that failed to bind, and the (most probably) expected type the parameter should have received.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list