]
Diego Pires Plentz resolved HHH-1991.
-------------------------------------
Assignee: Diego Pires Plentz
Resolution: Duplicate
add alias when create a subcriteria
-----------------------------------
Key: HHH-1991
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1991
Project: Hibernate3
Issue Type: Improvement
Components: query-criteria
Affects Versions: 3.1 rc2
Environment: windows
Reporter: Jorge L. Middleton
Assignee: Diego Pires Plentz
Priority: Trivial
Its very simple... only I noted this:
public DetachedCriteria createCriteria(String associationPath, String alias)
throws HibernateException {
return new DetachedCriteria( impl, criteria.createCriteria(associationPath) );
}
I had a problem with this method because, hibernate doesn't recognize the alias. The
point is that you have to use criteria.createCriteria(associationPath, alias);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: