The query generated is doing a full table scan. After discussing with our DBA's, we came to the conclusion only way to make it use the index is to use Oracle hints. The hint we have to use id /* use_nl (alias name) */.
Since the alias is generated by Hibernate, I am not sure what to give in the "alias name". So, if I can instruct Hibernate to use the alias I mention, I thought I can use it in the hint.
Please let me know in case you need additional clarification. Thank you for your help to solve my problem.
|