Hibernate version:
3.0.5
The generated SQL (show_sql=true):
Hibernate: select hibernatep0_.iddb as iddb, hibernatep0_.name as name6_, hibernatep0_.packageid as packageid6_, hibernatep0_.processdefinitionid as processd4_6_, hibernatep0_.processdefinitionversion as processd5_6_, hibernatep0_.processdefinitioncreated as processd6_6_, hibernatep0_.state as state6_ from processdefinitions hibernatep0_ where PackageId='test_bs' order by ProcessDefinitionCreated ASC
code:
session.createQuery("from HibernateProcessMgr where "+sqlWhere).list(); //sqlWhere="PackageId='test_bs' order by ProcessDefinitionCreated ASC"
Is it possible to have hsql do a insensitive check on property name. I get a 'sqlwhere' statement where properties are in a upper/lower case mix. I need to have hibernate do a query based on this statement. Unfortunately, i have no control on the generation of this sqlWhere statement, i have to manage with it. Is it possible to have hsql perform a case insensitive comparaison of property names or do i have to write code (and lots of such code) to convert propertynames to their correct value (like PackageId -> packageId)?
Help greatly appreciated.
|