Nataraj,
Do a cast on the second or third argument to make it explicit which add
method you want,
cri.add(TbCommitteememberPeer.ROLE,
"normalmember",
(Object)Criteria.NOT_EQUAL);
or,
cri.add(TbCommitteememberPeer.ROLE,
(Object)(new String("normalmember")),
Criteria.NOT_EQUAL);
if you dont like the casts, another alternative is to create a "ColumnValue"
object that will accept a String as an argument and write a toString() that
represents it's value. This will ensure that add(String columnname, Object
value, String comparison) is used on those cases.
Cameron Riley
--
To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>