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" <[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]>


---
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.


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to