|
30 | 30 | * <p>
|
31 | 31 | * Unless explicitly specified, the ProcedureCall is assumed to follow the
|
32 | 32 | * 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}. |
37 | 34 | * <p>
|
38 | 35 | * When using function-call syntax:<ul>
|
39 | 36 | * <li>parameters must be registered by position (not name)</li>
|
|
55 | 52 | */
|
56 | 53 | public interface ProcedureCall
|
57 | 54 | 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"; |
63 | 55 |
|
64 | 56 | /**
|
65 | 57 | * Get the name of the stored procedure (or function) to be called.
|
@@ -282,4 +274,12 @@ default void close() {
|
282 | 274 |
|
283 | 275 | @Override
|
284 | 276 | 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"; |
285 | 285 | }
|
0 commit comments