db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Greene" <agre...@romulin.com>
Subject RE: Only 2 columns exist!
Date Wed, 08 Jan 2003 14:39:27 GMT
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:Thierry.Lach@bbdodetroit.com]
Sent: Wednesday, January 08, 2003 10:08 AM
To: Turbine Torque Users List
Cc: turbine-torque-dev@jakarta.apache.org
Subject: RE: Only 2 columns exist!


Agreed.  doSelect() should not modify the criteria being passed it.

-----Original Message-----
From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
Sent: Tuesday, January 07, 2003 7:42 PM
To: turbine-torque-user@jakarta.apache.org
Subject: Re: Only 2 columns exist!


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


--
To unsubscribe, e-mail:
<mailto:turbine-torque-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:turbine-torque-dev-help@jakarta.apache.org>



Mime
View raw message