java - Casting the string column as int in hql query or criteria -
can guide me going wrong? giving 0 result in db values existing condition appear in below query.
str = queryimpl(from arczipcoderange cast(fromzip int) >='12345' , cast(tozip int)<='12345') arczipcoderangelist = 0
are sure conditions correct?
cast(fromzip int) >='12345' , cast(tozip int)<='12345')
would give results from
> 12345 , to
< 12345.
should other way around: from
< 12345 , to
> 12345?
Comments
Post a Comment