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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]