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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to