开发者

How to implement Oracle hints in hibernate?

开发者 https://www.devze.com 2023-03-28 04:27 出处:网络
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.

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, the开发者_C百科y 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消