HHH-13857 Improve javadoc

Co-authored-by: Steve Ebersole <steve@hibernate.org>
This commit is contained in:
Christian Beikov 2023-06-27 15:53:53 +02:00
parent ed472eff8a
commit b6a1aefa6f

View File

@ -260,8 +260,12 @@ public static <T> Class<? extends T> getClass(T proxy) {
}
/**
* Get the true, underlying class of a proxied entity. This operation might
* initialize a proxy by side effect.
* Get the true, underlying class of a proxied entity.
* <p/>
* Like {@link #getClass}, this operation might initialize a proxy by side effect.
* However, here the initialization is avoided if possible. If the entity type is
* defined with subclasses, the proxy will need to be initialized to properly
* determine the class.
*
* @param proxy an entity instance or proxy
* @return the true class of the instance