Skip to content

Commit

Permalink
link to equivalent JPA operations on PersistenceUtil in javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Nov 6, 2022
1 parent 971a022 commit c1e1b58
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions hibernate-core/src/main/java/org/hibernate/Hibernate.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
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;
Expand Down Expand Up @@ -101,7 +100,9 @@ else if ( isPersistentAttributeInterceptable( proxy ) ) {
}

/**
* Check if the proxy or persistent collection is initialized.
* Determines if the given proxy or persistent collection is initialized.
* <p>
* 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
Expand Down Expand Up @@ -206,8 +207,11 @@ public static <T> Class<? extends T> getClass(T proxy) {
}

/**
* 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}.
* <p>
* 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
Expand Down

0 comments on commit c1e1b58

Please sign in to comment.