ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Shelley" <12gaugeme...@gmail.com>
Subject Re: Abator Example Class Criteria Question
Date Wed, 19 Mar 2008 01:26:53 GMT
Ah, that makes sense.  I've got about 20 OR'ed criteria elements and one
AND'ed element, but it should work out ok.  Thanks for the insight!

-Ryan

On Tue, Mar 18, 2008 at 5:23 PM, Jeff Butler <jeffgbutler@gmail.com> wrote:

> 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