Replace extends EmptyInterceptor with implements Interceptor and potentially StatementInspector
MSALIn Hibernate 6.0 the Interceptor interface received default implementations therefore the NOOP implementation that could be extended was no longer needed. This recipe migrates 5.x Interceptor#onPrepareStatement(String) to 6.0 StatementInspector#inspect().
org. openrewrite. hibernate. EmptyInterceptorToInterfacemod run . --recipe= org. openrewrite. hibernate. EmptyInterceptorToInterfaceInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.