Skip to content

Commit 2867b99

Browse files
committed
deprecate obsolete hint 'hibernate.procedure.function_return_jdbc_type_code'
1 parent e125ec2 commit 2867b99

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

hibernate-core/src/main/java/org/hibernate/procedure/ProcedureCall.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
* <p>
3131
* Unless explicitly specified, the ProcedureCall is assumed to follow the
3232
* procedure call syntax. To explicitly specify that this should be a function
33-
* call, use {@link #markAsFunctionCall}. JPA users could either:<ul>
34-
* <li>use {@code storedProcedureQuery.unwrap( ProcedureCall.class }.markAsFunctionCall()</li>
35-
* <li>set the {@link #FUNCTION_RETURN_TYPE_HINT} hint (avoids casting to Hibernate-specific classes)</li>
36-
* </ul>
33+
* call, use {@link #markAsFunctionCall}.
3734
* <p>
3835
* When using function-call syntax:<ul>
3936
* <li>parameters must be registered by position (not name)</li>
@@ -55,11 +52,6 @@
5552
*/
5653
public interface ProcedureCall
5754
extends CommonQueryContract, SynchronizeableQuery, StoredProcedureQuery, AutoCloseable {
58-
/**
59-
* The hint key (for use with JPA's "hint system") indicating the function's return JDBC type code
60-
* (aka, {@link java.sql.Types} code)
61-
*/
62-
String FUNCTION_RETURN_TYPE_HINT = "hibernate.procedure.function_return_jdbc_type_code";
6355

6456
/**
6557
* Get the name of the stored procedure (or function) to be called.
@@ -282,4 +274,12 @@ default void close() {
282274

283275
@Override
284276
ProcedureCall registerStoredProcedureParameter(String parameterName, Class<?> type, ParameterMode mode);
277+
278+
/**
279+
* The hint key indicating the function's return {@linkplain java.sql.Types JDBC type code}.
280+
*
281+
* @deprecated This hint no longer has any effect. Use {@link #markAsFunctionCall(int)}.
282+
*/
283+
@Deprecated(since="7", forRemoval = true)
284+
String FUNCTION_RETURN_TYPE_HINT = "hibernate.procedure.function_return_jdbc_type_code";
285285
}

0 commit comments

Comments
 (0)