On Feb 6, 2008 12:54 AM, Matt Raible <[EMAIL PROTECTED]> wrote:
> What happens if you just use "useUnit" in your Expression?
>

Sorry Matt, I wrote a bad example, the property was "isUseUnit"

private Boolean isUseUnit;
...
public Boolean isUseUnit() {
}
public void setUseUnit(Boolean isUseUnit) {
}

and my expression was
   crit.add(Expression.eq("isUseUnit", new Boolean("true")));
and that one throws the exception

And you are right!  I can rewrite my expression as
   crit.add(Expression.eq("useUnit", new Boolean("true")));

Thanks!

-- 
Ernas M. Jamil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to