ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ankit.khujn...@wipro.com>
Subject RE: Using Operators in Compare Value in Ibatis Result maps
Date Wed, 12 Nov 2008 09:37:31 GMT
 
OK..

Now try this code snippet

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

Regards
Ankit

-----Original Message-----
From: Mehak [mailto:mehak.kapoor@hewitt.com] 
Sent: Wednesday, November 12, 2008 3:04 PM
To: user-java@ibatis.apache.org
Subject: RE: Using Operators in Compare Value in Ibatis Result maps


Hi Ankit
I tried using
<isEqual property="conditionList[].operator"
compareValue="is"><![CDATA["<"]]>
>= TIMESTAMP( #conditionList[].checkValue# ,'00.00.00') + 1 DAY
</isEqual>
It did not produce a sntax error but failed to excute.
When we say compareValue="is", then it compares
"conditionList[].operator"
with value "is" and not with what is mentioned in <![CDATA["<"]]>.
What we need here would be how can Ibatis accept < operator inside its
own isEqual tags?

Please help mw with this one.
thanks


ankit.khujneri wrote:
> 
> Try this <isEqual property="conditionList[].operator"
> compareValue="is"><![CDATA["<"]]> TIMESTAMP( 
> #conditionList[].checkValue#
> ,'00.00.00') ..
> -----Original Message-----
> From: Mehak [mailto:mehak.kapoor@hewitt.com]
> Sent: Tuesday, November 11, 2008 12:07 PM
> To: user-java@ibatis.apache.org
> 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-tp20434297p20456903.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

Mime
View raw message