[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-1991) add alias when create a subcriteria
Diego Pires Plentz (JIRA)
noreply at atlassian.com
Sat Sep 8 13:52:14 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: 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