Fix errors after upstream/main merge

This commit is contained in:
Andrea Boriero 2021-08-11 09:23:43 +02:00
parent 52b83829f1
commit ad61c8f1d4
2 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ public interface SharedSessionContractImplementor
/**
* Instantiate the entity class of an EntityPersister, initializing with the given identifier.
* This is more efficient than {@link #instantiate(String, Serializable)} but not always
* This is more efficient than {@link #instantiate(String, Object)} but not always
* interchangeable: a single persister might be responsible for multiple types.
*/
Object instantiate(EntityPersister persister, Object id) throws HibernateException;

View File

@ -171,7 +171,7 @@ public class StatelessSessionImpl extends AbstractSharedSessionContract implemen
return get( getFactory().getMetamodel().entityPersister( entityName ), id, lockMode );
}
protected Object get(final EntityPersister ep, final Serializable id, final LockMode lockMode) {
protected Object get(final EntityPersister ep, final Object id, final LockMode lockMode) {
checkOpen();
Object result = ep.load( id, null, getNullSafeLockMode( lockMode ), this );