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

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Fri Sep 1 04:58:24 EDT 2006


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

Max Rydahl Andersen commented on HBX-745:
-----------------------------------------

looks like it is not shortened. that's different bug ;)

> 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