- 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!