I wrote my code like this
criteria.add(Restrictions.eq("lastName", "ChARaN").ignoreCase()); //
This by default converting both to lower case.
SQL generated:
select
this_.ID as ID1_0_0_,
this_.EMAIL as EMAIL2_0_0_,
this_.FIRST_NAME as FIRST_NA3_0_0_,
this_.LAST_NAME as LAST_NAM4_0_0_
from
Employee this_
where
lower(this_.LAST_NAME)=?
14:56:57,017 TRACE BasicBinder:81 - binding parameter [1] as [VARCHAR] - [charan]
I want Hibernate to generate query for uppercase like:
where
upper(this_.LAST_NAME)=?