Hi,
We have a legacy application which works with Postgres database. It has sql queries which use postgres specific functions like date_part and date_trunc in the query select clause, where clause etc
Now the target is to port this application to Oracle and potentially SQL server.
This application uses JDBC and does not use Hibernate.
Now what we plan to do is instead of changing each query or putting conditions for each query we would like to transform/translate that query at runtime. So before execution, the query will be intercepted and transformed to support the target Dialect.
Does Hibernate provide API for SQL query parsing and generate a query model having methods like getWhereClause, getFromClause etc for DML's.
And then is there a possibility to transform that query to Oracle Dialect compliant query.
Regards
Piyush
|