[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-745) Query Parameter type not recognized (return null)

Michelle Baert (JIRA) noreply at atlassian.com
Fri Sep 1 05:05:25 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-745?page=comments#action_24264 ] 

Michelle Baert commented on HBX-745:
------------------------------------

I'm writing further tests. I'll open the new bug with them attached (using jdk5 is ok ?).

> Query Parameter type not recognized (return null)
> -------------------------------------------------
>
>          Key: HBX-745
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-745
>      Project: Hibernate Tools
>         Type: Bug

>   Components: hbm2java
>     Versions: 3.2beta7
>     Reporter: Michelle Baert
>  Attachments: TestProject.zip
>
>
> I declared a query in a hbm.xml, with a parameter :
> <query-param  name="pattern"  type="String" />
> When I try to generate code through hbm2dao (or templates like dao\daohome.ftl),  
> Cfg2JavaTool.asFinderArgumentList() returns <null>. as argument type 
> I found no details in documentation about query element attributes.
> Anyway, when the type name is not recognized, should not an exception be thrown instead of *silently* returning <null> ?
> If I specify type="java.lang.String", the same string is returned as argument type, where I'd prefer simply "String".
> I didn't try other types yet.

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