Try this

<isEqual property="conditionList[].operator"
compareValue="is"><![CDATA["<"]]>
                TIMESTAMP( #conditionList[].checkValue# ,'00.00.00') + 1
DAY </isEqual>

Regards
Ankit

-----Original Message-----
From: Mehak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2008 11:10 AM
To: [email protected]
Subject: RE: Using Operators in Compare Value in Ibatis Result maps


Hi
Please help me with this. I tried using <![CDATA[ Give your operator
here]]>
like:

<isEqual property="conditionList[].operator"
compareValue="![CDATA["<"]]"> TIMESTAMP( #conditionList[].checkValue#
,'00.00.00') + 1 DAY </isEqual>

It does not accept this syntax.
Also, I cannot use <greater than> and other tags as I have to compare a
variable with a value so I would use <isEqual>. This variable is a
conditional operator.
This variable has value '>','<','=', etc..
So I need to compare this value with these operators.
Please guide me.
I would be very thankful to you.
Mehak kapoor


ankit.khujneri wrote:
>
>
> XML does not support < and > operator as it is. You have to use
> <![CDATA[ Give your operator here]]>
>
> Hope this will help you
>
> Regards
> Ankit
>
> -----Original Message-----
> From: Mehak [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 11, 2008 12:07 PM
> To: [email protected]
> Subject: Using Operators in Compare Value in Ibatis Result maps
>
>
> Hi
> Please help me with this simpl problem regarding using operators in
> compare value.
> I have a condition something like:
>     lastUpdatedDate > givenTime, then do this.
>     lastUpdatedDate < givenTime, then do this.
>     lastUpdatedDate <= givenTime, then do this.
> To achieve this I have the following data ready:
> <isEqual property="operator" compareValue=">">  TIMESTAMP(
> #checkValue#
> ,'00.00.00') + 1 DAY </isEqual> Now how to use < and <= operator in
> this as it does not accept something
> like:
> <isEqual property="operator" compareValue="<">  TIMESTAMP(
> #checkValue#
> ,'00.00.00') + 1 DAY </isEqual>
>
> Please guide urgently. I would be very thnakful to you.
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Using-Operators-in-Compare-Value-in-Ibatis-Resul
> t-
> maps-tp20434297p20434297.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> addressee(s) and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately and destroy all copies of this message and any
attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>
>

--
View this message in context:
http://www.nabble.com/Using-Operators-in-Compare-Value-in-Ibatis-Result-
maps-tp20434297p20454575.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

Reply via email to