ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: possible to use isEqual inside iterate tag?
Date Fri, 05 Sep 2008 18:13:38 GMT
SELECT
  <dynamic>
    <isPropertyAvailable property="return_columns">
      <iterate property="return_columns" conjunction=",">
        <isEqual property="return_columns[].isValid" compareValue="false">
          #return_columns[].someProperty#
        </isEqual>
      </iterate>
    </isPropertyAvailable>
  </dynamic>

 FROM

 $table_name$

Jeff Butler


On Fri, Sep 5, 2008 at 1:04 PM, Kyunam Kim <kyunam_kim@esri.com> wrote:
>
> Hi all,
>
>
>
> When iterating a list of my pojos, I'd like to examine a property of each pojo using
<isEqual/> like
>
>
>
> SELECT
>
>     <dynamic>
>
>       <isPropertyAvailable property="return_columns">
>
>         <iterate property="return_columns" conjunction=",">
>
>             <isEqual property="isValid" compareValue="false">
>
>                $HOW DO I ACCESS A CURRENT ELEMENT'S PROPERTY HERE?$
>
>             </isEqual>
>
>         </iterate>
>
>       </isPropertyAvailable>
>
>     </dynamic>
>
>  FROM
>
>  $table_name$
>
>
>
> Would this be possible scenario?
>
> If yes, could you tell me the exact syntax to use to access a property of each element
while inside <iterate/>?
>
>
>
> Thanks,
>
> Q
>
>

Mime
View raw message