Skip to content

Commit e10e841

Browse files
committed
HHH-13640 : Remove SharedSessionContractImplementor#internalLoad(String, Serializable, boolean, boolean, Boolean unwrapProxy)
1 parent c21ecb5 commit e10e841

File tree

3 files changed

+2
-23
lines changed

3 files changed

+2
-23
lines changed

hibernate-core/src/main/java/org/hibernate/engine/spi/SharedSessionContractImplementor.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,6 @@ void initializeCollection(PersistentCollection collection, boolean writing)
255255
Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
256256
throws HibernateException;
257257

258-
default Object internalLoad(
259-
String entityName,
260-
Serializable id,
261-
boolean eager,
262-
boolean nullable,
263-
Boolean unwrapProxy) throws HibernateException {
264-
return internalLoad( entityName, id, eager, nullable );
265-
}
266-
267258
/**
268259
* Load an instance immediately. This method is only called when lazily initializing a proxy.
269260
* Do not return the proxy.

hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,18 +1001,7 @@ public final Object internalLoad(
10011001
String entityName,
10021002
Serializable id,
10031003
boolean eager,
1004-
boolean nullable) throws HibernateException {
1005-
return internalLoad( entityName, id, eager, nullable, null );
1006-
1007-
}
1008-
1009-
@Override
1010-
public final Object internalLoad(
1011-
String entityName,
1012-
Serializable id,
1013-
boolean eager,
1014-
boolean nullable,
1015-
Boolean unwrapProxy) {
1004+
boolean nullable) {
10161005
final EffectiveEntityGraph effectiveEntityGraph = getLoadQueryInfluencers().getEffectiveEntityGraph();
10171006
final GraphSemantic semantic = effectiveEntityGraph.getSemantic();
10181007
final RootGraphImplementor<?> graph = effectiveEntityGraph.getGraph();

hibernate-core/src/main/java/org/hibernate/type/EntityType.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,7 @@ protected final Object resolveIdentifier(Serializable id, SharedSessionContractI
688688
getAssociatedEntityName(),
689689
id,
690690
eager,
691-
isNullable(),
692-
unwrapProxy
691+
isNullable()
693692
);
694693

695694
if ( proxyOrEntity instanceof HibernateProxy ) {

0 commit comments

Comments
 (0)