ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Abator Example Class Criteria Question
Date Wed, 19 Mar 2008 00:23:00 GMT
This is an exercise in boolean algebra :)

You can do this (equivalent) in Abator's example classes:

where (field1 = 'foobar' and field2 = 'foo') or (field1 = 'foobar' and
field3 = 'bar')

Jeff Butler



On Tue, Mar 18, 2008 at 7:11 PM, Ryan Shelley <12gaugemedia@gmail.com>
wrote:

> I need to generate a WHERE Clause like:
>
> ...WHERE field1 = 'foobar' AND (field2 = 'foo' OR field3 = 'bar')
>
> I'm having some trouble working this through with the Example classes
> generated by Abator, so I thought I'd ask if it's possible.
>
> Thanks!
>
> -Ryan
>

Mime
View raw message