db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: Limit selected columns
Date Wed, 09 Apr 2008 14:40:30 GMT
"Andre Steinmetzger" <Andre.Steinmetzger@cimt-ag.de> schrieb am 09.04.2008
> how can I limit the selected columns in the resultlist.
> When I create a criteria an call BasePeer.doSelect(criteria) torque
generate a
> SQL like select * from .... but I need something to create a SQL like
> column1, column2, .. from ...

There is a method called addSelectColumn (or something similar) in
Criteria. Note, however, that the Result -> Java Object does not work if
you specify the selected columns; you would have to use the villagwe
ResultSet directly.


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

View raw message