HHH-14540 Maintain strict API backwards compatibility

This commit is contained in:
Sanne Grinovero 2021-11-16 15:26:48 +00:00
parent e155fc551e
commit 1dc49271c1
1 changed files with 8 additions and 0 deletions

View File

@ -1123,6 +1123,14 @@ public class SessionFactoryImpl implements SessionFactoryImplementor {
} }
} }
/**
* @deprecated use {@link #configuredInterceptor(Interceptor, boolean, SessionFactoryOptions)}
*/
@Deprecated
public static Interceptor configuredInterceptor(Interceptor interceptor, SessionFactoryOptions options) {
return configuredInterceptor( interceptor, false, options );
}
public static Interceptor configuredInterceptor(Interceptor interceptor, boolean explicitNoInterceptor, SessionFactoryOptions options) { public static Interceptor configuredInterceptor(Interceptor interceptor, boolean explicitNoInterceptor, SessionFactoryOptions options) {
// NOTE : DO NOT return EmptyInterceptor.INSTANCE from here as a "default for the Session" // NOTE : DO NOT return EmptyInterceptor.INSTANCE from here as a "default for the Session"
// we "filter" that one out here. The return from here should represent the // we "filter" that one out here. The return from here should represent the