ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Malecki" <misie...@poczta.onet.pl>
Subject Re: <iterate>
Date Tue, 09 Aug 2005 12:41:59 GMT
#[]# 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