It is possible to specify any where clause you want using the CUSTOM key
in Criteria.
fanyun wrote:
>
> Hi all:
>
> I am using tdk1.1a9.
>
> When I am using Criteria + Peer, I find a critical problem.
>
> See If I want do a
> select * from test where columna <> 3 and columna <>4,
>
> what turbine generate is
>
> select * from test where columna <> 4;
>
> I checked Criteria class. I find it is a hash table. So I understand why
> this happen. the second:
>
> criteria.add( columna , 4 );
>
> override the first criteria.add.
>
> Is there any solution?(I think it can not be easily fixed)
>
> Another thing is I notice in BasePeer class, the comment for "doSelect"
> is: " Old method for performing a SELECT." But which is the new method?
>
> Should I directly use executeQuery() which will bring direct sql statment
> into my codes?
>
> Regards
>
> fanyun
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]