I personally never trusted the dynamic prepend, so my solution would be to
avoid it;
WHERE 1=1 AND
<dynamic open="(" close=")">
<isNotEmpty property="A"> $logicOperator$ A = #A#</isNotEmpty>
<isNotEmpty property="B"> $logicOperator$ B = #B#</isNotEmpty>
</dynamic>
-----Original Message-----
From: Kunle Gbadamosi [mailto:[email protected]]
Sent: 04 September 2009 12:35 AM
To: [email protected]
Subject: Dynamic (Evaluated) Prepend
Hi there,
I have a situation where I need to dynamically determine my prepend value
(which could be AND or OR).
Here's a quick sample -
<dynamic open="(" close=")">
<isNotEmpty property="A" prepend="$logicOperator$">A = #A#</isNotEmpty>
<isNotEmpty property="B" prepend="$logicOperator$">B = #B#</isNotEmpty>
</dynamic>
Looking at the snippet, I want to pass the value of the prepend using
$logicOperator$. And I want the first Prepend to be removed. Is there a way
I can I go about this ?
Thanks,
Kunle
--
View this message in context:
http://www.nabble.com/Dynamic-%28Evaluated%29-Prepend-tp25285320p25285320.ht
ml
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09
18:05:00
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]