mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 19:58:16 +00:00
HHH-13640 : Remove SharedSessionContractImplementor#internalLoad(String, Serializable, boolean, boolean, Boolean unwrapProxy)
(cherry picked from commit e10e84159afcd5dd4977f6a709413c8f4e1b1530)
This commit is contained in:
parent
7249e4f736
commit
d3d7705fa6
@ -246,15 +246,6 @@ void initializeCollection(PersistentCollection collection, boolean writing)
|
|||||||
Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
|
Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
|
||||||
throws HibernateException;
|
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.
|
* Load an instance immediately. This method is only called when lazily initializing a proxy.
|
||||||
* Do not return the proxy.
|
* Do not return the proxy.
|
||||||
|
@ -1132,17 +1132,7 @@ public final Object internalLoad(
|
|||||||
String entityName,
|
String entityName,
|
||||||
Serializable id,
|
Serializable id,
|
||||||
boolean eager,
|
boolean eager,
|
||||||
boolean nullable) throws HibernateException {
|
boolean nullable) {
|
||||||
return internalLoad( entityName, id, eager, nullable, null );
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public final Object internalLoad(
|
|
||||||
String entityName,
|
|
||||||
Serializable id,
|
|
||||||
boolean eager,
|
|
||||||
boolean nullable,
|
|
||||||
Boolean unwrapProxy) {
|
|
||||||
final LoadEventListener.LoadType type;
|
final LoadEventListener.LoadType type;
|
||||||
if ( nullable ) {
|
if ( nullable ) {
|
||||||
type = LoadEventListener.INTERNAL_LOAD_NULLABLE;
|
type = LoadEventListener.INTERNAL_LOAD_NULLABLE;
|
||||||
|
@ -683,8 +683,7 @@ protected final Object resolveIdentifier(Serializable id, SharedSessionContractI
|
|||||||
getAssociatedEntityName(),
|
getAssociatedEntityName(),
|
||||||
id,
|
id,
|
||||||
eager,
|
eager,
|
||||||
isNullable(),
|
isNullable()
|
||||||
unwrapProxy
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( proxyOrEntity instanceof HibernateProxy ) {
|
if ( proxyOrEntity instanceof HibernateProxy ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user