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 er...@aftenposten.no on 2005/04/13 21:07:05 UTC

compareProperty with Boolean or boolean ?

Hi there!
 
Is it not possible to have: for Boolean:
 
<isEqual prepend="and" compareProperty="booleanObjectProp" compareValue="true">
 
or similar for boolean ?
 
<isGreaterThen prepend="and"  compareProperty="booleanPrimitiveProp" compareValue="false">
 
????
 
Have tried most combinations with 
 
isBooleanObjectProp()
getBooleanObjectProp()
isBooleanPrimitveProp()
 
etc, it still don't include the and boolean/Boolean clause of mine.
 
Any suggestion ?
 
 
 
Thanks!
Erlend Bjørge

Re: compareProperty with Boolean or boolean ?

Posted by Brandon Goodin <br...@gmail.com>.
The "true" should compare fine against a Boolean object. I ran a test
to double check the functionality. Basically it gets
Boolean.toString() and performs a compare between  the compareValue
and the Boolean.toString().

Brandon

On 4/13/05, erlend.bjorge@aftenposten.no <er...@aftenposten.no> wrote:
>  
> Hi there! 
>   
> Is it not possible to have: for Boolean: 
>   
> <isEqual prepend="and" compareProperty="booleanObjectProp"
> compareValue="true"> 
>   
> or similar for boolean ? 
>   
>  
> <isGreaterThen prepend="and" 
> compareProperty="booleanPrimitiveProp"
> compareValue="false"> 
>   
> ???? 
>   
> Have tried most combinations with 
>   
> isBooleanObjectProp() 
> getBooleanObjectProp() 
> isBooleanPrimitveProp() 
>   
> etc, it still don't include the and boolean/Boolean clause of mine. 
>   
> Any suggestion ? 
>   
>   
>   
> Thanks! 
> Erlend Bjørge