i have a native sql query to transform (aliasToBean) to a bean with a boolean value.
My query can be something like this:
select val IS NOT NULL as boolValue , ...
or this:
select 1=0 as boolValue, ...
I can not understand how to let Hibernate knows that my bean.boolValue is a Boolan because I get errors in type conversion, in the first case I get a java.math.BigInteger in the second a java.lang.Integer.
Thank you.