Sorry, that should be
List v = FooPeer.doSelectVillageRecords(c);
the List/Vector will then contain Record objects. Partial selection of
attributes to fill when building objects has not been implemented
(though if anyone has suggestions they are welcome.)
And I would also like to point out that these Records should be
considered read only objects, but I should add that to the javadoc.
John McNally
Daniel Rall wrote:
>
> 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]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]