[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3247) Provide more information in TypeMismatchException message

Diego Plentz (JIRA) noreply at atlassian.com
Tue Aug 12 14:42:09 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30839 ] 

Diego Plentz commented on HHH-3247:
-----------------------------------

Thanks Szczepan.

> Provide more information in TypeMismatchException message
> ---------------------------------------------------------
>
>                 Key: HHH-3247
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3247
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.6
>            Reporter: Szczepan Kuzniarz
>            Assignee: Diego Plentz
>             Fix For: 3.3.x
>
>   Original Estimate: 10 minutes
>  Remaining Estimate: 10 minutes
>
> When DefaultLoadEventListener throws TypeMismatchException it provides information about expected and actual id types:
> "Provided id of the wrong type. Expected: " + idClass + ", got " + event.getEntityId().getClass()
> but it says nothing about the offending class. It is not always the class which is loaded by client (it may be one of associated classes) and sometimes it's not easy to track it down. It would be nice if DefaultLoadEventListener would report something like this:
> "Provided id of the wrong type for class " + persister.getEntityName() + ". Expected: " + idClass + ", got " + event.getEntityId().getClass()

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