From 8c671d98d0fbb5729213a781b9c6d43563aa4eb6 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Wed, 11 Dec 2019 19:43:37 -0600 Subject: [PATCH] minor --- .../org/hibernate/metadata/ClassMetadata.java | 3 +++ .../hibernate/metadata/CollectionMetadata.java | 3 +++ .../org/hibernate/metadata/package-info.java | 14 ++++++++++++++ .../java/org/hibernate/metadata/package.html | 16 ---------------- 4 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 hibernate-core/src/main/java/org/hibernate/metadata/package-info.java delete mode 100755 hibernate-core/src/main/java/org/hibernate/metadata/package.html 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. -

- -