ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos de Luna Saenz <cdelunasa...@yahoo.com.mx>
Subject Re: OR
Date Fri, 20 Jun 2008 16:05:19 GMT
Yes, you may use an iteration...
      <select id="porEleccionIds" resultMap="mappingTO"
       parameterClass = "MappingTO">
        select A.ParteT,   A.Consec,   A.Id
                                                          where  
                                                                A.epoca = B.idEpoca 
                                                            AND A.sala = C.idInst
                                                            
             <iterate property = "listado" open = "" close = "" conjunction = "OR">
                  #listado[]# 
              </iterate>
             order by $orderBy$ $orderType$
 

Greetings

----- Mensaje original ----
De: Martin Zdila <m.zdila@mwaysolutions.com>
Para: user-java@ibatis.apache.org
Enviado: viernes, 20 de junio, 2008 10:53:20
Asunto: OR

hello

is it possible to combine conditions with OR? example:

<isPropertyAvailable property="prop1 OR prop1">
..
</isPropertyAvailable>

thanks in advance

-- 
Martin Zdila 
CTO

M-Way Solutions Slovakia s.r.o.
Letna 27, 040 01 Kosice
Slovakia

tel:+421-908-363-848
mailto:m.zdila@mwaysolutions.com
http://www.mwaysolutions.com
xmpp:zdila@jabbim.sk (Jabber)
skype:m.zdila



      ____________________________________________________________________________________
Yahoo! Deportes Beta
¡No te pierdas lo último sobre el torneo clausura 2008! Entérate aquí http://deportes.yahoo.com
Mime
View raw message