Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I just wanted to know is there any way to implement Oracle hints in hibernate?

In the net i found that using native sqlquery we can implement the oracle hints in hibernate.

in some forum, they said using projectionlist we can implement the oracle hints in hibernate.

But my question is through configuration in hbm file wether we can implement oracle hints in common?

is there any other possible way to implement oracle hints in hiberna

share|improve this question

1 Answer

If you need a hint per Entity and not per query, then you may use @Subselect:

@Entity
@Subselect("select /*+NO_MERGE*/ * from view_blabla")

Otherwise I am afraid you have to use native SQL query.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.