-->
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.  [ 3 posts ] 
Author Message
 Post subject: Oracle hints
PostPosted: Thu Jan 22, 2004 9:51 am 
Newbie

Joined: Thu Jan 22, 2004 9:17 am
Posts: 3
Hi,

I'd like to know if it's possible to insert oracle sql hints in HQL.

Like:
Query query = session.createQuery("select /* CHOOSE */ teste from iqTeste as teste ");

I know it's possible do it in sqlquery:
Query query = session.createSQLQuery("select /* CHOOSE */ {teste.*} from iqusuario {teste} ", "teste", iqTeste.class);

But in sqlqueries I can't do iteration and it's very import to me.

Thank's

Rogerio Baldini.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 10:09 am 
Regular
Regular

Joined: Mon Nov 24, 2003 6:36 pm
Posts: 105
seems like gavin says no, but in the future...
Use the forum search:
http://forum.hibernate.org/viewtopic.ph ... hint+query


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2004 5:49 pm 
Newbie

Joined: Tue Aug 26, 2003 9:52 am
Posts: 15
You might use an oracle session parameter to switch to the CHOOSE optimizer mode : alter session set optimizer_mode='choose'

That way all your queries would use this optimizer mode.

HTH. Alain


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.