开发者

How to implement 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜