MyEclipse version 8.0
Build id: 8.0-20091120
Hibernate 3.2
I have created reverse engineering POJOs including DAOs for MySQL Database tables.
When I have my custom code with HQL select refering generated POJOs, it works fine for MySQL database in which rev.engg done.
( I cannot use default findbyproperty method which comes with rev.engg due to multiple where condition columns).
I am trying to execute same application connecting to Oracle 10g database, the same HQL statements are not working because Hibernate is throwing SQLGrammerException due to case sensitivity of column names generated in MySQL not compatible with Oracle.
On observation, column name for example CUSTOMERNAME (uppercase in both oracle and mysql), has been generated as ‘CustomerName’ in mapping file when generated with MySQL. But same column has been generated as ‘customername’ when connected and generated with Oracle.
Due to this, my custom HQL is not working during runtime.
Is there any method to specifiy in reverse engineering process, to make the generation of column names compatible with all databases, atleast with mysql and oracle database.
Or is it a limitation of hibernate.
Please suggest
-Rags