I believe the change is most likely adding the table name to the Criteria and usually the criteria is specific to one call / one table (as the .add() parameters take Peer.Field paramters that are specific to a particular table). In the given example the two call deal with two different tables. Under any other circumstance (other than a blank Criteria) this wouldn't make sense. (Though I assume what you are trying to avoid is the costly object creation process that is the nightmare of every speed conscious Java developer, me included).
-----Original Message----- From: Lach, Thierry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 10:08 AM To: Turbine Torque Users List Cc: [EMAIL PROTECTED] Subject: RE: Only 2 columns exist! Agreed. doSelect() should not modify the criteria being passed it. -----Original Message----- From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 7:42 PM To: [EMAIL PROTECTED] Subject: Re: Only 2 columns exist! "Travis Stevens" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [EMAIL PROTECTED] D-91054 Buckenhof Fax.: 09131 / 50654-20 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
