db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Grossman" <rich...@goldmail.net.il>
Subject How to select only 1 column from a table?
Date Mon, 31 Mar 2003 12:51:33 GMT
Hi,

I try to select only 1 column from a table using the peer object method DoSelect()
I've try:
      Criteria crit = new Criteria();
      crit.addSelectColumn(mainProductPeer.MAIN_PRODUCT_SEQID);
      List SeqIDList = mainProductPeer.doSelect(crit);

I receive an Exception :
     com.workingdogs.village.DataSetException: Only 1 columns exist!

Is it possible do this with Torque peer object?
If not is there another solution ?

Thanks

Richard


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message