From c1e1b58e5766bfdfd11b609af949982150c5ef33 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sun, 6 Nov 2022 13:50:16 +0100 Subject: [PATCH] link to equivalent JPA operations on PersistenceUtil in javadoc --- .../src/main/java/org/hibernate/Hibernate.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/Hibernate.java b/hibernate-core/src/main/java/org/hibernate/Hibernate.java index aa4c18e867..b961a5c5a3 100644 --- a/hibernate-core/src/main/java/org/hibernate/Hibernate.java +++ b/hibernate-core/src/main/java/org/hibernate/Hibernate.java @@ -28,7 +28,6 @@ import org.hibernate.collection.spi.PersistentSet; import org.hibernate.collection.spi.PersistentSortedMap; import org.hibernate.collection.spi.PersistentSortedSet; import org.hibernate.collection.spi.PersistentCollection; -import org.hibernate.engine.spi.PersistentAttributeInterceptable; import org.hibernate.engine.spi.PersistentAttributeInterceptor; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.persister.entity.EntityPersister; @@ -101,7 +100,9 @@ public final class Hibernate { } /** - * Check if the proxy or persistent collection is initialized. + * Determines if the given proxy or persistent collection is initialized. + *

+ * This operation is equivalent to {@link jakarta.persistence.PersistenceUtil#isLoaded(Object)}. * * @param proxy a persistable object, proxy, persistent collection or {@code null} * @return true if the argument is already initialized, or is not a proxy or collection @@ -206,8 +207,11 @@ public final class Hibernate { } /** - * Check if the property is initialized. If the named property does not exist or - * is not persistent, this method always returns {@code true}. + * Determines if the property with the given name of the given entity instance is + * initialized. If the named property does not exist or is not persistent, this + * method always returns {@code true}. + *

+ * This operation is equivalent to {@link jakarta.persistence.PersistenceUtil#isLoaded(Object, String)}. * * @param proxy The potential proxy * @param propertyName the name of a persistent attribute of the object