ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <eugeny...@jdevelop.com>
Subject IsNotEqual
Date Tue, 30 Aug 2005 11:56:57 GMT
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#

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

View raw message