John McNally <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] wrote:
> >
> > hi,
> >
> > is it possible to execute a query something like
> >
> > select distinct <column> from <table>
> >
> > using the peer model. I noticed the setDistinct and addSelectColumn methods
> > in the Criteria object but can't figure out how they work together.
> >
>
> Criteria c = new Criteria(0);
> c.setDistinct();
> c.addSelectColumn(FooPeer.COLUMN_BAR);
> Vector v = FooPeer.doSelect(c);
Does this select only COLUMN_BAR? Usually, calls to doSelect() grab
everything...
--
Daniel Rall <[EMAIL PROTECTED]>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]