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=")">

When passing the list directly as argument use:

<iterate open="(" close=")">

Hope this helps,


-----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
like creating the (1,2,3,4,5) list in the SQL? The thing is I know how
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
IsNotNull) which won't work with the list elements in version 2.1.5?

Eugene N Dzhurinsky

View raw message