ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: <iterate>
Date Tue, 09 Aug 2005 12:47:04 GMT
That's weird, the iBATIS JUnit-tests use this construction numerous
times and yet do not fail. That's why I assumed it should work, I do not
use it myself...

Niels

-----Original Message-----
From: Michal Malecki [mailto:misiek_x@poczta.onet.pl] 
Sent: dinsdag 9 augustus 2005 14:42
To: user-java@ibatis.apache.org
Subject: Re: <iterate>

#[]# is not valid ibatis token, there can't be property of empty name
and
when you address bean in a global manner (whole bean) you write "value"
Michal Malecki


> On Tue, Aug 09, 2005 at 02:27:38PM +0200, Niels Beekman wrote:
> > You defined a parameter-class list, this is java.util.List, then you
> > iterate over 'something' which does not exist. If you pass a single
> > parameter (like you do now) do not use the attribute 'property' of
the
> > iterate-tag:
> >
> > <select id="getRules" parameterClass="list"
> >   resultClass="com.greenvalley.TMS.MML.Entity.Rule">SELECT rule_id,
> >   name, description FROM rule
> >   <dynamic prepend=" WHERE ">
> >       <iterate prepend=" rule_id in " open="(" close=")"
> > conjunction=",">
> >   #[]#
> >       </iterate>
> >   </dynamic>
> > </select>



Mime
View raw message