Skip to content

Commit

Permalink
HHH-14474 Style and formatting improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Mar 2, 2021
1 parent 40dccc5 commit d55dd93
Showing 1 changed file with 14 additions and 5 deletions.
Expand Up @@ -23,15 +23,16 @@ public interface UniqueEntityLoader {
* Load an entity instance. If <tt>optionalObject</tt> is supplied,
* load the entity state into the given (uninitialized) object.
*
* @throws HibernateException indicates problem performing the load.
*
* @deprecated use {@link #load(java.io.Serializable, Object, SharedSessionContractImplementor, LockOptions)} instead.
*/
@SuppressWarnings( {"JavaDoc"})
@Deprecated
Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session) throws HibernateException;

default Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly) throws HibernateException {
return load( id, optionalObject, session );
}
Object load(
Serializable id,
Object optionalObject,
SharedSessionContractImplementor session);

/**
* Load an entity instance by id. If <tt>optionalObject</tt> is supplied (non-<tt>null</tt>,
Expand All @@ -52,6 +53,14 @@ Object load(
SharedSessionContractImplementor session,
LockOptions lockOptions);

default Object load(
Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
Boolean readOnly) {
return load( id, optionalObject, session );
}

default Object load(
Serializable id,
Object optionalObject,
Expand Down

0 comments on commit d55dd93

Please sign in to comment.