ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: IsNotEqual
Date Tue, 30 Aug 2005 11:57:44 GMT
You need to choose between compareProperty or compareValue...
What you are trying to do requires the following:

<IsNotEqual prepend=" OR " property="test" compareValue="-1"/>

The attribute compareProperty would be used to compare against another


-----Original Message-----
From: Eugeny N Dzhurinsky [mailto:eugenydzh@jdevelop.com] 
Sent: dinsdag 30 augustus 2005 13:57
To: user-java@ibatis.apache.org
Subject: IsNotEqual

I'm trying to execute
<select resultClass="someclass" parameterClass="soemclass">
    select * from table
    <dynamic prepend=" WHERE ">
	<IsNotEqual prepend=" OR " compareProperty="test"
	    test = #test#

The thing is if the test property in the object does have value set to
the IsNotEqual is appended to the SQL query for some reason.

The test property is declared as "int".

Any ideas?

Eugene N Dzhurinsky

View raw message