How to use Oracle Hint in Hibnernate/JPA insert Query

I want to use IGNORE_ROW_ON_DUPKEY_INDEX Hint in the insert query (

Is there a way to use the hint in HQL/JPA Query other than using nativeQuery option?


insert /*+ ignore_row_on_dupkey_index(demo_test,c_cons1) */ into demo_test values (100,‘xyz’);

you can create your own Interceptor by extending org.hibernate.EmptyInterceptor and overwriting onPrepareStatement.