You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Inandjo Taurel <in...@hotmail.com> on 2003/10/18 15:30:05 UTC

criteria getting one field only??

hi,

Using criteria, i wish somebody could tell me how to have the equivalent to 
this query:

SELECT  COLUMN1 FROM TABLE1

THANX..

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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


AW: criteria getting one field only??

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi,

Criteria c = new Criteria();
c.addSelectColumn(MyGeneratedPeerClassForTable.COLUMN1);
List l = MyGeneratedPeerClassForTable.doSelect(c);

I recommend you read the provided documentation for Torque provided on
db.apache.org/torque

http://db.apache.org/torque/user-guide.html

Kind regards 

Jürgen Hoffmann

-----Ursprüngliche Nachricht-----
Von: Inandjo Taurel [mailto:inandjo@hotmail.com] 
Gesendet: Samstag, 18. Oktober 2003 15:30
An: turbine-user@jakarta.apache.org
Betreff: criteria getting one field only??

hi,

Using criteria, i wish somebody could tell me how to have the equivalent to 
this query:

SELECT  COLUMN1 FROM TABLE1

THANX..

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



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