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 Mon, 08 Aug 2005 14:29:42 GMT
Something like this:

class MyBean {
  public List getList() {
    return mylinkedList;
  }
}

<iterate property="list" open="(" close=")">
  #[]#
</iterate>

When passing the list directly as argument use:

<iterate open="(" close=")">
  #[]#
</iterate>

Hope this helps,

Niels

-----Original Message-----
From: Eugeny N Dzhurinsky [mailto:eugenydzh@jdevelop.com] 
Sent: maandag 8 augustus 2005 16:16
To: user-java@ibatis.apache.org
Subject: <iterate>

Is there any way to pass the LinkedList to the iterate tag and make
something
like creating the (1,2,3,4,5) list in the SQL? The thing is I know how
to
iterate on the bean property which contains the list, but have no idea
how to
do that with the LinkedList passed to the iBATIS SQL mapper :(


P.S. also did anybody take a look at the bug with the dynamic statements
(like
IsNotNull) which won't work with the list elements in version 2.1.5?

-- 
Eugene N Dzhurinsky

Mime
View raw message