You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Lach, Thierry" <Th...@bbdodetroit.com> on 2003/01/08 15:07:30 UTC
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" <Tr...@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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
RE: Only 2 columns exist!
Posted by Adam Greene <ag...@romulin.com>.
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" <Tr...@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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
RE: Only 2 columns exist!
Posted by Adam Greene <ag...@romulin.com>.
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" <Tr...@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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>