ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Azzopardi <...@tigerfive.com>
Subject Re: [JDBC type = ARRAY / Java type = ?] conditionally add a table to the from clause just once if either or both of two parameters is not empty
Date Thu, 22 Feb 2007 16:04:16 GMT

less ugly and more obvious to read - thanks


Koka Kiknadze wrote:
> 
> <isNotEmpty property="supplierCompanyId">
>         , suppliers_for_parts sp
> </isNotEmpty>
> 
> <isEmpty property="supplierCompanyId">
>     <isNotEmpty property="supplierRef">
>          , suppliers_for_parts sp
>      </isNotEmpty>
> </isEmpty>
> 
> another ugly way I guess.
> 
> 

-- 
View this message in context: http://www.nabble.com/conditionally-add-a-table-to-the-from-clause-just-once-if-either-or-both-of-two-parameters-is-not-empty-tf3272865.html#a9102673
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Mime
View raw message