RE: Criteria.addSelectColumn problem

"Manaster, Carl" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <[email protected]>
Hi, Frank,

> However, when I do it in Torque:
> 
> crit.add (c2, 3333)
> crit.addSelectColumn (c3)
> crit.setDistinct();
> Iterator results = t3Peer.doSelect(crit).iterator() 
> 
> would throw Exception at doSelect() because during the 
> populateObject(), it found only 1 column instead of all 
> columns as default to populate the data into it. 
> 
> So, to make it short, is there a way to select records from a 
> table with a specified, distinctive column(s) in Torque?

I think what you are looking for is to replace t3Peer with BasePeer.
This will not return t3 records; instead it will return just generic
Records, and those records will hold only the specified (c3) select
column.

Peace,
--Carl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.