18
18
import java .util .List ;
19
19
20
20
import org .hibernate .Session ;
21
- import org .hibernate .annotations .QueryHints ;
22
21
import org .hibernate .cfg .AvailableSettings ;
23
22
import org .hibernate .dialect .OracleDialect ;
23
+ import org .hibernate .jpa .HibernateHints ;
24
24
import org .hibernate .procedure .ProcedureCall ;
25
25
import org .hibernate .query .procedure .ProcedureParameter ;
26
26
import org .hibernate .result .Output ;
@@ -82,7 +82,7 @@ public class OracleStoredProcedureTest {
82
82
public void testUnRegisteredParameter (EntityManagerFactoryScope scope ) {
83
83
scope .inTransaction ( (em ) -> {
84
84
final StoredProcedureQuery function = em .createStoredProcedureQuery ( "find_char" , Integer .class );
85
- function .setHint ( QueryHints . CALLABLE_FUNCTION , "true" );
85
+ function .setHint ( HibernateHints . HINT_CALLABLE_FUNCTION , "true" );
86
86
// search-string
87
87
function .registerStoredProcedureParameter ( 1 , String .class , ParameterMode .IN );
88
88
// source-string
@@ -101,7 +101,7 @@ public void testUnRegisteredParameter(EntityManagerFactoryScope scope) {
101
101
public void testUnRegisteredParameterByName2 (EntityManagerFactoryScope scope ) {
102
102
scope .inTransaction ( (em ) -> {
103
103
final StoredProcedureQuery function = em .createStoredProcedureQuery ( "find_char" , Integer .class );
104
- function .setHint ( QueryHints . CALLABLE_FUNCTION , "true" );
104
+ function .setHint ( HibernateHints . HINT_CALLABLE_FUNCTION , "true" );
105
105
// search-string
106
106
function .registerStoredProcedureParameter ( "search_char" , String .class , ParameterMode .IN );
107
107
// source-string
@@ -120,7 +120,7 @@ public void testUnRegisteredParameterByName2(EntityManagerFactoryScope scope) {
120
120
public void testUnRegisteredParameterByNameInvertedParameterRegistrationOrder (EntityManagerFactoryScope scope ) {
121
121
scope .inTransaction ( (em ) -> {
122
122
final StoredProcedureQuery function = em .createStoredProcedureQuery ( "find_char" , Integer .class );
123
- function .setHint ( QueryHints . CALLABLE_FUNCTION , "true" );
123
+ function .setHint ( HibernateHints . HINT_CALLABLE_FUNCTION , "true" );
124
124
// search-string
125
125
function .registerStoredProcedureParameter ( "string" , String .class , ParameterMode .IN );
126
126
// source-string
0 commit comments