-->
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: org.hibernate.callable query hint for native queries
PostPosted: Wed May 05, 2010 6:05 pm 
Newbie

Joined: Wed May 05, 2010 6:02 pm
Posts: 1
- It appears that the callable query hint (org.hibernate.callable) cannot be set on a native query (not a named native query, a regular native query).
- I scoured through the source and the SQLQueryImpl constructors do not support passing in a callable parameter except if it is a named native query.

So if I am excuting a stored proc (which doesn't match to an entity very nicely) it will often not work. the setHint() call via JPA is of no value in this case.


Seems like a bug to me?

note:
the only other constructor that allows the passing of a callable value is marked with the comment:
Code:
// TODO : absolutely no usages of this constructor form; can it go away?


kind of funny, I need to use that overridden constructor!


Top
 Profile  
 
 Post subject: Re: org.hibernate.callable query hint for native queries
PostPosted: Tue May 08, 2012 1:43 am 
Newbie

Joined: Sun Sep 12, 2010 9:14 am
Posts: 2
I found something similar. Seems SP not well supported.


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.