In a project, I need to specify oracle hint in query. Spring JPA gives us to ability defining hint in @QueryHint (javax.persistence) annotation for query definition. But when I set oracle hint, app throws Ignoring unrecognized query hint [hint-definition] while query executes.
I found some question and answer 10 years ago or earlier than. They told you should be use native query. But I aim that code should be clean as possible.
How can specify custom query hint with JPA (or any Spring and Hibernate) annototion based on query?
Note : In project, eclipselink is not used.
Thanks for your help.