You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Eugeny N Dzhurinsky <eu...@jdevelop.com> on 2005/08/30 13:56:57 UTC
IsNotEqual
I'm trying to execute
<select resultClass="someclass" parameterClass="soemclass">
select * from table
<dynamic prepend=" WHERE ">
<IsNotEqual prepend=" OR " compareProperty="test" compareValue="-1">
test = #test#
</IsNotEqual>
</dynamic>
</select>
The thing is if the test property in the object does have value set to -1,
the IsNotEqual is appended to the SQL query for some reason.
The test property is declared as "int".
Any ideas?
--
Eugene N Dzhurinsky