HHH-12695 Restore the getType method in ParameterRegistration

It was removed in 5.3.0.Beta1, but this breaks backward compatibility
with 5.1.
This commit is contained in:
Yoann Rodière 2018-07-04 09:40:10 +02:00 committed by Guillaume Smet
parent 68ad2130e8
commit fb8e1c1d71
1 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,17 @@ public interface ParameterRegistration<T> extends ProcedureParameter<T> {
@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<T> 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).