ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Zdila <m.zd...@mwaysolutions.com>
Subject Re: OR
Date Fri, 20 Jun 2008 16:12:33 GMT
thanks 4 the answer, you don't understand me.

<isPropertyAvailable property="prop1 OR prop2">
  body
</isPropertyAvailable>

what i want is to evaluate "body" when property "prop1" is available, OR 
property "prop2" is available.

On Fri 20. June 2008 18:05:19 Carlos de Luna Saenz wrote:
> 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

Mime
View raw message