[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1696?page=all ]
Benoit Goudreault-Emond updated HHH-1696:
-----------------------------------------
Attachment: HHH-1696.patch
I've attached a simple patch against 3.1.3 that implements this feature. Actually, what the patch does is implement relevant functions in Criteria in the DetachedCriteria class. Those are:
- All variants of createAlias()
- All variants of createCriteria()
- All variants of setLockMode()
- setComment() (not used much, I suppose, but why not?)
It wasn't clear whether setFlushMode() and setCacheMode() should be applied to DetachedCriteria. My guess is that those are more properties of the executable criteria, like setFirstResult()/setMaxResult(), and aren't part of the query itself, but rather, of the execution environment.
> add outer join support for aliases on detached cirteria
> -------------------------------------------------------
>
> Key: HHH-1696
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1696
> Project: Hibernate3
> Type: Improvement
> Components: core
> Versions: 3.1.3, 3.2.0 cr1
> Environment: Hibernate 3.1, SQLServer2000
> Reporter: Mark Brocato
> Attachments: HHH-1696.patch
>
>
> Recently, support for aliasing via an outer join was added to the Criteria class. The method
> createAlias(String associationPath, String alias, int joinType)
> , however, is not defined for DetachedCriteria. Adding this functionality would be extremely helpful for applications that expose detached criteria as their query api, and also for subqueries.
--
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
|