diff --git a/hibernate-core/src/main/java/org/hibernate/metadata/ClassMetadata.java b/hibernate-core/src/main/java/org/hibernate/metadata/ClassMetadata.java index b425409c6c..f8fa1ed76b 100644 --- a/hibernate-core/src/main/java/org/hibernate/metadata/ClassMetadata.java +++ b/hibernate-core/src/main/java/org/hibernate/metadata/ClassMetadata.java @@ -18,8 +18,11 @@ import org.hibernate.type.Type; * * @see org.hibernate.SessionFactory#getClassMetadata(Class) * @author Gavin King + * + * @deprecated (since 6.0) Use Hibernate's mapping model {@link org.hibernate.metamodel.MappingMetamodel} */ @SuppressWarnings( {"JavaDoc"}) +@Deprecated public interface ClassMetadata { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/hibernate-core/src/main/java/org/hibernate/metadata/CollectionMetadata.java b/hibernate-core/src/main/java/org/hibernate/metadata/CollectionMetadata.java index 8388c37377..f3c03436e5 100644 --- a/hibernate-core/src/main/java/org/hibernate/metadata/CollectionMetadata.java +++ b/hibernate-core/src/main/java/org/hibernate/metadata/CollectionMetadata.java @@ -11,7 +11,10 @@ import org.hibernate.type.Type; * Exposes collection metadata to the application * * @author Gavin King + * + * @deprecated (since 6.0) Use Hibernate's mapping model {@link org.hibernate.metamodel.MappingMetamodel} */ +@Deprecated public interface CollectionMetadata { /** * The collection key type diff --git a/hibernate-core/src/main/java/org/hibernate/metadata/package-info.java b/hibernate-core/src/main/java/org/hibernate/metadata/package-info.java new file mode 100644 index 0000000000..7083dd5855 --- /dev/null +++ b/hibernate-core/src/main/java/org/hibernate/metadata/package-info.java @@ -0,0 +1,14 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later + * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html + */ + +/** + * This package defines an API for accessing the Hibernate runtime metamodel. + * + * @deprecated (since 6.0) Use Hibernate's mapping model {@link org.hibernate.metamodel.MappingMetamodel} + */ +@Deprecated +package org.hibernate.metadata; diff --git a/hibernate-core/src/main/java/org/hibernate/metadata/package.html b/hibernate-core/src/main/java/org/hibernate/metadata/package.html deleted file mode 100755 index d5da94555b..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/metadata/package.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - -

- This package defines an API for accessing the Hibernate - runtime metamodel. -

- -