[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3825) Allow variable arguments in Session.createQuery(...)

Diego Plentz (JIRA) noreply at atlassian.com
Tue May 5 14:32:17 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33094#action_33094 ] 

Diego Plentz commented on HHH-3825:
-----------------------------------

If we go ahead with the idea that hibernate 3.5 will be java 5 compatible, this could be improved a little by becoming a varargs method.

> Allow variable arguments in Session.createQuery(...)
> ----------------------------------------------------
>
>                 Key: HHH-3825
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3825
>             Project: Hibernate Core
>          Issue Type: Improvement
>            Reporter: Ricardo Mayerhofer
>            Priority: Minor
>
> I think variable arguments in createQuery would really simplify its syntax.
> E.g.:
> createQuery( "select from Clazz c where c.attribute = ?", value );
> instead of 
> Query query = createQuery( "select from Clazz c where c.attribute = ?" );
> query.setParam( 0, value );

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