Change SQL query with a parametric query in Oracle

94 views Asked by At

We have an application that uses a framework that we don't have access to it's java classes. I can just see the .class file in byte-code format. So I can't override that class. At that class we have a native query like below:

"Select col1 from table1 where col2='x'";

I mean where condition is not parametric. As well I don't have access to change the query in the code. the App uses Oracle database and Hibernate as ORM. The question is

"Is there any way to tell Oracle or Hibernate to change this hardcoded query with a parametric one?"

0

There are 0 answers