[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6666) Add support for nested properties of named parameters in HQL queries.
Amir Pashazadeh (JIRA)
noreply at atlassian.com
Mon Sep 19 00:26:36 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43639#comment-43639 ]
Amir Pashazadeh commented on HHH-6666:
--------------------------------------
Well, by using Query.setProperties, we can not access to nested properties as ":otherDepartment.manager.name".
> Add support for nested properties of named parameters in HQL queries.
> ---------------------------------------------------------------------
>
> Key: HHH-6666
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6666
> Project: Hibernate Core
> Issue Type: Improvement
> Components: query-hql
> Affects Versions: 3.6.7
> Reporter: Amir Pashazadeh
>
> We can not pass an object as query parameter, and use its properties in the HQL
> Isn't it good to have a query like:
> {code}
> from Department d where d.name = :other.name and d.establishDate != :other.establishDate
> {code}
> and then pass an object with *name* and *address* with *other* name?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list