HHH-13640 : Remove SharedSessionContractImplementor#internalLoad(String, Serializable, boolean, boolean, Boolean unwrapProxy)

This commit is contained in:
Gail Badner 2019-10-11 16:39:30 -07:00
parent c21ecb511c
commit e10e84159a
3 changed files with 2 additions and 23 deletions

View File

@ -255,15 +255,6 @@ public interface SharedSessionContractImplementor
Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
throws HibernateException;
default Object internalLoad(
String entityName,
Serializable id,
boolean eager,
boolean nullable,
Boolean unwrapProxy) throws HibernateException {
return internalLoad( entityName, id, eager, nullable );
}
/**
* Load an instance immediately. This method is only called when lazily initializing a proxy.
* Do not return the proxy.

View File

@ -1001,18 +1001,7 @@ public final class SessionImpl
String entityName,
Serializable id,
boolean eager,
boolean nullable) throws HibernateException {
return internalLoad( entityName, id, eager, nullable, null );
}
@Override
public final Object internalLoad(
String entityName,
Serializable id,
boolean eager,
boolean nullable,
Boolean unwrapProxy) {
boolean nullable) {
final EffectiveEntityGraph effectiveEntityGraph = getLoadQueryInfluencers().getEffectiveEntityGraph();
final GraphSemantic semantic = effectiveEntityGraph.getSemantic();
final RootGraphImplementor<?> graph = effectiveEntityGraph.getGraph();

View File

@ -688,8 +688,7 @@ public abstract class EntityType extends AbstractType implements AssociationType
getAssociatedEntityName(),
id,
eager,
isNullable(),
unwrapProxy
isNullable()
);
if ( proxyOrEntity instanceof HibernateProxy ) {