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

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -