From 479975dcb3bb52e6b54ae98839d75f0fcaafc752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 4 Jul 2018 09:40:10 +0200 Subject: [PATCH] HHH-12695 Restore the getType method in ParameterRegistration It was removed in 5.3.0.Beta1, but this breaks backward compatibility with 5.1. --- .../hibernate/procedure/ParameterRegistration.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/procedure/ParameterRegistration.java b/hibernate-core/src/main/java/org/hibernate/procedure/ParameterRegistration.java index 92c96fb777..b36f656052 100644 --- a/hibernate-core/src/main/java/org/hibernate/procedure/ParameterRegistration.java +++ b/hibernate-core/src/main/java/org/hibernate/procedure/ParameterRegistration.java @@ -37,6 +37,17 @@ public interface ParameterRegistration extends ProcedureParameter { @Override Integer getPosition(); + /** + * Return the Java type of the parameter. + * + * @return The Java type of the parameter. + * @deprecated Call {@link #getParameterType()} instead. + */ + @Deprecated + default Class getType() { + return getParameterType(); + } + /** * Retrieves the parameter "mode" which describes how the parameter is defined in the actual database procedure * definition (is it an INPUT parameter? An OUTPUT parameter? etc).