[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-925) DetachedCriteria.createCriteria not working with alias

Yajun Shi (JIRA) noreply at atlassian.com
Fri Jan 19 13:38:44 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-925?page=comments#action_25859 ] 

Yajun Shi commented on HHH-925:
-------------------------------

KB Candidate:

Title:
DetachedCriteria doesn't create criteria with alias

There is a known bug in Hibernate 3.1.3 and 3.2.1. In class DetachedCriteria, method DetachedCriteria createCriteria(String associationPath, String alias) ignores parameter alias so that you cannot create criteria with alias. We are providing a patch for it in Sash 2.0.

If you need further assistance, feel free to contact Sourcelabs Support.

> DetachedCriteria.createCriteria not working with alias
> ------------------------------------------------------
>
>          Key: HHH-925
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-925
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.0 alpha, 3.0 beta 1, 3.0 beta 2, 3.0 beta 3, 3.0 beta 4, 3.0 rc 1, 3.0 final, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.1 beta 1, 3.1 beta 2
>  Environment: Hibernate 3.0.5, Oracle
>     Reporter: Felipe Cuozzo
>     Priority: Minor

>
> Original Estimate: 10 minutes
>         Remaining: 10 minutes
>
> DetachedCriteria.createCriteria(associationPath, alias) is calling the wrong Criteria.createCriteria method
> public DetachedCriteria createCriteria(String associationPath, String alias)
> throws HibernateException {
> 	return new DetachedCriteria( impl, criteria.createCriteria(associationPath) );
> }
> should be:
> public DetachedCriteria createCriteria(String associationPath, String alias)
> throws HibernateException {
> 	return new DetachedCriteria( impl, 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