-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Force the use of a Oracle Index
PostPosted: Thu Nov 23, 2006 12:27 pm 
Newbie

Joined: Mon Aug 09, 2004 2:50 pm
Posts: 10
Location: Sao Paulo , SP, Brazil
Hi,

Is there any way to force a HQL or a Criteria query in Hibernate use a specific Oracle index ? Like in this select:

select /*+ index(a jnc_purcat_n1) full(b) */ *
from jnc_purcat a


Thanks in advance,

Sergio Stateri Jr.
sergio.stateri@globo.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 5:02 pm 
Newbie

Joined: Tue Aug 24, 2004 4:54 pm
Posts: 4
I found this while researching this issue. It explained a bit about how to create a CriteriaImpl where you can impelement the setAfterTableSql method and provide the use functionality yourself.

http://opensource.atlassian.com/project ... se/HHH-902


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.