db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manaster, Carl" <Ca...@ACTIVX.com>
Subject RE: Criteria.addSelectColumn problem
Date Fri, 22 Aug 2008 19:27:36 GMT
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


To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message