[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2177) query parameters could be properties of supplied class
Amir Pashazadeh (JIRA)
noreply at atlassian.com
Wed Oct 25 17:31:04 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2177?page=comments#action_24988 ]
Amir Pashazadeh commented on HHH-2177:
--------------------------------------
what if nested properties must be supplied from two or more objects?
suppose query is like
session.createQuery("from MyEntity as m where m.prop1 = :p.prop1 and m.prop2 = p.prop2 and m.prop3 = :q.prop1 and m.prop4 = :q.prop2").
addParameter("p", myObject1).
addParameter("q", myObject2);
is there any way to do this with current API?
> query parameters could be properties of supplied class
> ------------------------------------------------------
>
> Key: HHH-2177
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2177
> Project: Hibernate3
> Type: Improvement
> Components: query-hql
> Versions: 3.2.0.ga
> Reporter: Amir Pashazadeh
>
>
> it will be a good feature if we could have something like:
> session.createQuery("from MyEntity as m where m.firstName = :p.name and m.lastName = :p.surName").
> addParameter("p", myObject);
> so hibernate itself navigates throw parameter properties; this will reduce parameter settings a lot.
--
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