Hi all,
I've a problem with the result sets using criteria api. The result set to be upper cased by the criteria list().
SQL query:
select empid, upper(name), dept from employee where empid=1;
The above query returns the result with the upper case name column.
But the below query returns the exact name values from the table.
Criteria query:
Criteria criteria = session.createCriteria(Employee.class);
List list = criteria.add(Restrictions.ilike("empid", empid)).list();
I appreciate if any one clarify how to resolve this issue.
Thanks
Velu
|