ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: nested javabeans properties
Date Sat, 01 Jan 2005 19:41:10 GMT
have you looked into the isPresent, isEqual, isNotEqual,etc.. tags
yet? Otherwise, you will need to be more specific. It is difficult to
help out with ambiquous scenarios in dynasql.

Brandon


On Fri, 31 Dec 2004 12:35:14 +0100, Michał Małecki
<Michal.Malecki@man.poznan.pl> wrote:
> Hello Clinton,
> 
> I have class Condition {
>         int timestamp;
>         Vector attributes; //Vector of key-value class
>         int level;
>         /* constructors, getters, setters, etc*/
> }
> I would like to pass List of condition objects, and to generate
> following query
> select .....
> from log_events
> where (
>         --first Condition object
>         conditions for timestamp and level
>         multiple subqueries for each element of attributes Vector
> 
> ) OR (
>         --second Condition object
>         conditions for timestamp and level
>         multiple subqueries for each element of attributes Vector
> ).....
> So I have to use first iterate element for the big condition (connected
> using OR) and nested iterate for all subqueries built using "attribute"
> Vector; How can this be done??
> 
> Michał
> 
> Clinton Begin wrote:
> > Hi Michal,
> >
> >
> >>is it planned to add support for nested javabeans properties, also
> >>collections?
> >
> >
> > iBATIS supports both of these already.  I don't understand enough
> > about what you're asking to know how to help you.  Can you provide
> > some code examples?
> >
> > Clinton
> >
> 
> 
>

Mime
View raw message