From 5ff2289da48f7a8b69db37bf11c84e5aadda3976 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 27 Apr 2017 17:07:14 +0100 Subject: [PATCH] HHH-11700 - Deprecate three org.hibernate.engine.spi.SessionFactoryImplementor methods --- .../hibernate/engine/spi/SessionFactoryImplementor.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryImplementor.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryImplementor.java index 58784f7043..f5e0e07356 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryImplementor.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryImplementor.java @@ -115,14 +115,20 @@ public interface SessionFactoryImplementor extends Mapping, SessionFactory, Quer * Access to the cachres of HQL/JPQL and native query plans. * * @return The query plan cache + * + * @deprecated (since 5.2) it will be replaced with the new QueryEngine concept introduced in 6.0 */ + @Deprecated QueryPlanCache getQueryPlanCache(); /** * Provides access to the named query repository * * @return The repository for named query definitions + * + * @deprecated (since 5.2) it will be replaced with the new QueryEngine concept introduced in 6.0 */ + @Deprecated NamedQueryRepository getNamedQueryRepository(); /** @@ -137,7 +143,10 @@ public interface SessionFactoryImplementor extends Mapping, SessionFactory, Quer * Retrieve the {@link Type} resolver associated with this factory. * * @return The type resolver + * + * @deprecated (since 5.2) No replacement, access to and handling of Types will be much different in 6.0 */ + @Deprecated TypeResolver getTypeResolver(); /**