db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gareth Boden <gareth.bo...@egsgroup.com>
Subject Re: Only 2 columns exist!
Date Wed, 08 Jan 2003 11:14:56 GMT
Yeah.. the reason is cos doSelect() will call 
Criteria.addSelectColumn() to add all the columns for your object to 
the Criteria. It should probably treat Criteria as effectively 
immutable and clone it..

G.

On Wednesday, January 8, 2003, at 12:41  am, Henning P. Schmiedehausen 
wrote:

> "Travis Stevens" <Travis.Stevens@noaa.gov> writes:
>
>> FYI,
>
>> to answer my own question,
>
>> wrong:
>> Criteria crit = new Criteria();
>> List aList = APeer.doSelect(crit);
>> List bList = BPeer.doSelect(crit);
>
>
>> right:
>> Criteria crit = new Criteria();
>> List aList = APeer.doSelect(crit);
>> crit = new Criteria();
>> List bList = BPeer.doSelect(crit);
>
> Ugh. Thats' IMHO a bug.
>
> 	Regards
> 		Henning
>
> -- 
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
> INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de
>
> Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
> D-91054 Buckenhof     Fax.: 09131 / 50654-20
>
> --
> To unsubscribe, e-mail:   
> <mailto:turbine-torque-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:turbine-torque-user-help@jakarta.apache.org>
>
>
---
Development Team Leader, eGS, 5-7 Singer Street, London EC2A 4BQ. +44 
(0)20 7336 1440

CONFIDENTIALITY: This is email is confidential and intended solely for 
the use of the individual to whom it is addressed.  Any views or 
opinions presented are solely those of the author and do not 
necessarily represent those of eGovernment Solutions (UK) Ltd.  If you 
are not the intended recipient, be advised that you have received this 
email in error and that any use, dissemination, forwarding, or copying 
of this email is strictly prohibited.  If you have received this email 
in error please contact the sender.


Mime
View raw message