Skip to content

Commit 7585aaa

Browse files
dreab8gavinking
authored andcommitted
Revert some package private-changes made by 04366bd because the classes are extended by Hibernate Reactive
1 parent e98d4c5 commit 7585aaa

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@
4545
/**
4646
* @author Andrea Boriero
4747
*/
48-
class ExceptionConverterImpl implements ExceptionConverter {
48+
// Extended by Hibernate Reactive
49+
public class ExceptionConverterImpl implements ExceptionConverter {
4950

5051
private final SharedSessionContractImplementor session;
5152
private final boolean isJpaBootstrap;
5253

53-
ExceptionConverterImpl(SharedSessionContractImplementor session) {
54+
public ExceptionConverterImpl(SharedSessionContractImplementor session) {
5455
this.session = session;
5556
isJpaBootstrap = session.getFactory().getSessionFactoryOptions().isJpaBootstrap();
5657
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@
153153
* @author Steve Ebersole
154154
* @author Chris Cranford
155155
*/
156-
class SessionFactoryImpl implements SessionFactoryImplementor {
156+
// Extended by Hibernate Reactive
157+
public class SessionFactoryImpl implements SessionFactoryImplementor {
157158

158159
private final String name;
159160
private final String jndiName;
@@ -205,7 +206,7 @@ class SessionFactoryImpl implements SessionFactoryImplementor {
205206
final transient ParameterMarkerStrategy parameterMarkerStrategy;
206207
final transient JdbcValuesMappingProducerProvider jdbcValuesMappingProducerProvider;
207208

208-
SessionFactoryImpl(
209+
public SessionFactoryImpl(
209210
final MetadataImplementor bootMetamodel,
210211
final SessionFactoryOptions options,
211212
final BootstrapContext bootstrapContext) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@
152152
* @author Chris Cranford
153153
* @author Sanne Grinovero
154154
*/
155-
class SessionImpl
155+
// Extended by Hibernate Reactive
156+
public class SessionImpl
156157
extends AbstractSharedSessionContract
157158
implements Serializable, SharedSessionContractImplementor, JdbcSessionOwner, SessionImplementor, EventSource,
158159
TransactionCoordinatorBuilder.Options, WrapperOptions, LoadAccessContext {
@@ -181,7 +182,7 @@ class SessionImpl
181182

182183
private transient TransactionObserver transactionObserver;
183184

184-
SessionImpl(SessionFactoryImpl factory, SessionCreationOptions options) {
185+
public SessionImpl(SessionFactoryImpl factory, SessionCreationOptions options) {
185186
super( factory, options );
186187

187188
final var sessionOpenEvent = getEventMonitor().beginSessionOpenEvent();

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@
116116
* @author Gavin King
117117
* @author Steve Ebersole
118118
*/
119-
class StatelessSessionImpl extends AbstractSharedSessionContract implements StatelessSessionImplementor {
119+
// Extended by Hibernate Reactive
120+
public class StatelessSessionImpl extends AbstractSharedSessionContract implements StatelessSessionImplementor {
120121

121122
public static final MultiIdLoadOptions MULTI_ID_LOAD_OPTIONS = new MultiLoadOptions();
122123

@@ -128,7 +129,7 @@ class StatelessSessionImpl extends AbstractSharedSessionContract implements Stat
128129
private final FlushMode flushMode;
129130
private final EventListenerGroups eventListenerGroups;
130131

131-
StatelessSessionImpl(SessionFactoryImpl factory, SessionCreationOptions options) {
132+
public StatelessSessionImpl(SessionFactoryImpl factory, SessionCreationOptions options) {
132133
super( factory, options );
133134
connectionProvided = options.getConnection() != null;
134135
if ( options instanceof SharedSessionCreationOptions sharedOptions

0 commit comments

Comments
 (0)