db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <tfisc...@apache.org>
Subject Re: Qestion on BasePeer.createQueryString
Date Thu, 12 Jan 2006 21:42:13 GMT
Hi,

A reason could be that the Peer classes override the behaviour of 
BasePeer.doSelect(). If no select colums are given within the original 
criteria, the doSelect() in the generated peer classed adds the columns 
needed to fill the peers to the criteria. This would fit the behaviour you 
see.

    Thomas

On Thu, 12 Jan 2006, Christian Stamm wrote:

> Hi,
>
> I found a little strange behaviour of BasePeer.createQueryString(crit).
>
> Although I'm quite sure, the criteria is constructed the same way every
> time, the querytext differs.
>
> its one time
>
> SELECT FROM A,B WHERE ...
>
> and the other time
>
> SELECT A.a, A.b, A.c FROM A,B WHERE ...
>
> i.e. all columns of A are listed between SELECT and FROM
>
> Both queries give me Objects of typ A as wanted and expected.
> I analyzed the code and i could not find anything, which could make a
> difference in criteria construction. Anyone has a hint, how that can
> happen?
>
> thx
> Christian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message