From db12d5a17a72d048d0e53bd2d0906d827bb0bbe5 Mon Sep 17 00:00:00 2001 From: Jan Schatteman Date: Thu, 11 Nov 2021 22:49:30 +0100 Subject: [PATCH] Remove deprecated JPA_METAMODEL_GENERATION and JPA_METAMODEL_POPULATION from AvailableSettings Signed-off-by: Jan Schatteman --- .../userguide/appendices/Configurations.adoc | 9 ---- .../org/hibernate/cfg/AvailableSettings.java | 26 ---------- .../JpaMetaModelPopulationSetting.java | 52 ------------------- .../JpaStaticMetaModelPopulationSetting.java | 27 ---------- .../AbstractJpaMetamodelPopulationTest.java | 4 +- ...tamodelskipUnsupportedPopulationTest.java} | 4 +- .../paths/SingularAttributeJoinTest.java | 2 +- .../contributed/EntityHidingTests.java | 4 +- .../hibernate/test/idclass/IdClassTest.java | 2 +- .../test/envers/RuntimeModelSmokeTests.java | 9 +--- 10 files changed, 10 insertions(+), 129 deletions(-) delete mode 100644 hibernate-core/src/main/java/org/hibernate/metamodel/internal/JpaMetaModelPopulationSetting.java rename hibernate-core/src/test/java/org/hibernate/jpa/test/metamodel/{JpaMetamodelIgnoreUnsupportedPopulationTest.java => JpaMetamodelskipUnsupportedPopulationTest.java} (77%) diff --git a/documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc b/documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc index dcf3ac10d56c..76b747394226 100644 --- a/documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc +++ b/documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc @@ -1152,15 +1152,6 @@ XML configuration file to use to configure Hibernate. If true, the persistence context will be discarded (think `clear()` when the method is called). Otherwise, the persistence context will stay alive till the transaction completion: all objects will remain managed, and any change will be synchronized with the database (default to false, ie wait for transaction completion). -`*hibernate.ejb.metamodel.population*` (e.g. `enabled` or `disabled`, or `ignoreUnsupported` (default value)):: -Setting that indicates whether to build the Jakarta Persistence types. -+ -Accepts three values: -+ -enabled::: Do the build. -disabled::: Do not do the build. -ignoreUnsupported::: Do the build, but ignore any non-Jakarta Persistence features that would otherwise result in a failure (e.g. `@Any` annotation). - `*hibernate.jpa.static_metamodel.population*` (e.g. `enabled` or `disabled`, or `skipUnsupported` (default value)):: Setting that controls whether we seek out Jakarta Persistence _static metamodel_ classes and populate them. + diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java b/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java index 27044847ee24..3534d2a4c7d4 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java @@ -269,32 +269,6 @@ public interface AvailableSettings { @Deprecated String ENVIRONMENT_CLASSLOADER = "hibernate.classLoader.environment"; - /** - * @deprecated use {@link #JPA_METAMODEL_POPULATION} instead. - */ - @Deprecated - String JPA_METAMODEL_GENERATION = "hibernate.ejb.metamodel.generation"; - - /** - * Setting that indicates whether to build the JPA types. Accepts - * 3 values: - * - * - */ - @Deprecated - String JPA_METAMODEL_POPULATION = "hibernate.ejb.metamodel.population"; - /** * Setting that controls whether we seek out JPA "static metamodel" classes and populate them. Accepts * 3 values: