On Wednesday 21 May 2008 04:33, Peter Ledbrook wrote:
> > public \
> > static \
> > folderNames()
> > {
> > return Clif.createCriteria().listDistinct {
> > fetchMode('residentFolder', FM.EAGER)
> > projections { 'residentFolder' }
> > order('residentFolder', 'asc')
> > }
> > }
>
> projections {
> property("residentFolder")
> }
Thanks.
That brings up more questions:
1) Why do the single quotes I used not work for property names?
2) Why doesn't listDistinct actually limit the result to distinct
values? Does the duplicate removal happen before the projection?
2a) Why doesn't applying the GDK unique() method to the result of list
(or listDistinct) not change the collection? The residentFolder
property is just a plain String
Would it be possible to give diagnostics for invalid constructs such as
the ones I was originally using?
Randall Schulz
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email