remove type parameter from StatelessSessionBuilder
this was already done for SessionBuilder, but apparently StatelessSessionBuilder got forgotten
This commit is contained in:
parent
1606953a32
commit
e23318aa95
|
@ -93,7 +93,6 @@ public interface SessionBuilder {
|
|||
*
|
||||
* @return {@code this}, for method chaining
|
||||
*/
|
||||
@SuppressWarnings("UnusedReturnValue")
|
||||
SessionBuilder autoClear(boolean autoClear);
|
||||
|
||||
/**
|
||||
|
@ -130,7 +129,7 @@ public interface SessionBuilder {
|
|||
* Remove all listeners intended for the built session currently held here,
|
||||
* including any auto-apply ones; in other words, start with a clean slate.
|
||||
*
|
||||
* {@code this}, for method chaining
|
||||
* @return {@code this}, for method chaining
|
||||
*/
|
||||
SessionBuilder clearEventListeners();
|
||||
|
||||
|
|
|
@ -8,14 +8,12 @@ package org.hibernate;
|
|||
|
||||
import java.sql.Connection;
|
||||
|
||||
import org.hibernate.query.Query;
|
||||
|
||||
/**
|
||||
* Represents a consolidation of all stateless session creation options into a builder style delegate.
|
||||
* Allows creation of a new {@link StatelessSession} with specific options.
|
||||
*
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
public interface StatelessSessionBuilder<T extends StatelessSessionBuilder> {
|
||||
public interface StatelessSessionBuilder {
|
||||
/**
|
||||
* Opens a session with the specified options.
|
||||
*
|
||||
|
@ -30,7 +28,7 @@ public interface StatelessSessionBuilder<T extends StatelessSessionBuilder> {
|
|||
*
|
||||
* @return {@code this}, for method chaining
|
||||
*/
|
||||
T connection(Connection connection);
|
||||
StatelessSessionBuilder connection(Connection connection);
|
||||
|
||||
/**
|
||||
* Define the tenant identifier to be associated with the opened session.
|
||||
|
@ -39,5 +37,5 @@ public interface StatelessSessionBuilder<T extends StatelessSessionBuilder> {
|
|||
*
|
||||
* @return {@code this}, for method chaining
|
||||
*/
|
||||
T tenantIdentifier(String tenantIdentifier);
|
||||
StatelessSessionBuilder tenantIdentifier(String tenantIdentifier);
|
||||
}
|
||||
|
|
|
@ -187,7 +187,7 @@ public class SessionFactoryImpl extends QueryParameterBindingTypeResolverImpl im
|
|||
private final transient WrapperOptions wrapperOptions;
|
||||
private final transient SessionBuilderImpl defaultSessionOpenOptions;
|
||||
private final transient SessionBuilderImpl temporarySessionOpenOptions;
|
||||
private final transient StatelessSessionBuilder<?> defaultStatelessOptions;
|
||||
private final transient StatelessSessionBuilder defaultStatelessOptions;
|
||||
private final transient EntityNameResolver entityNameResolver;
|
||||
|
||||
private final transient SchemaManager schemaManager;
|
||||
|
|
Loading…
Reference in New Issue