From 6c227ed3048ce14cf489a09cacf9079d5bdb2082 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Tue, 22 Oct 2024 21:21:14 +0200 Subject: [PATCH] Some javadoc about HibernatePersistenceConfiguration Signed-off-by: Gavin King --- .../src/main/java/org/hibernate/cfg/Configuration.java | 5 +++++ .../org/hibernate/jpa/HibernatePersistenceConfiguration.java | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java b/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java index ad30789be6..3a384c9342 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java @@ -112,12 +112,17 @@ import jakarta.persistence.SharedCacheMode; * Programs may directly use the APIs defined under {@link org.hibernate.boot}, * as an alternative to using an instance of this class. * + * @apiNote The {@link org.hibernate.jpa.HibernatePersistenceConfiguration} + * is a new alternative to this venerable API, and extends the JPA-standard + * {@link jakarta.persistence.PersistenceConfiguration}. + * * @author Gavin King * @author Steve Ebersole * * @see SessionFactory * @see AvailableSettings * @see org.hibernate.boot + * @see org.hibernate.jpa.HibernatePersistenceConfiguration */ public class Configuration { private static final CoreMessageLogger log = CoreLogging.messageLogger( Configuration.class ); diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/HibernatePersistenceConfiguration.java b/hibernate-core/src/main/java/org/hibernate/jpa/HibernatePersistenceConfiguration.java index 1317162182..13ce41f00d 100644 --- a/hibernate-core/src/main/java/org/hibernate/jpa/HibernatePersistenceConfiguration.java +++ b/hibernate-core/src/main/java/org/hibernate/jpa/HibernatePersistenceConfiguration.java @@ -28,9 +28,12 @@ import jakarta.persistence.SharedCacheMode; import jakarta.persistence.ValidationMode; /** - * Hibernate extension to the Jakarta Persistence PersistenceConfiguration contract. + * Hibernate extension to the Jakarta Persistence {@link PersistenceConfiguration} + * contract. * * @author Steve Ebersole + * + * @since 7.0 */ public class HibernatePersistenceConfiguration extends PersistenceConfiguration { /**