[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2177?page=c...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira