@@ -1102,7 +1102,8 @@ public Object loadFromSecondLevelCache(
1102
1102
* Helper to avoid creating many new instances of {@link PostLoadEvent}.
1103
1103
* It's an allocation hot spot.
1104
1104
*/
1105
- private PostLoadEvent makePostLoadEvent (EntityPersister persister , Object id , Object entity ) {
1105
+ // Hibernate Reactive may need to use this
1106
+ protected PostLoadEvent makePostLoadEvent (EntityPersister persister , Object id , Object entity ) {
1106
1107
final PostLoadEvent event = postLoadEvent ;
1107
1108
if ( event == null ) {
1108
1109
return new PostLoadEvent ( id , persister , entity , this );
@@ -1120,7 +1121,8 @@ private PostLoadEvent makePostLoadEvent(EntityPersister persister, Object id, Ob
1120
1121
* Helper to avoid creating many new instances of {@link LoadEvent}.
1121
1122
* It's an allocation hot spot.
1122
1123
*/
1123
- private LoadEvent makeLoadEvent (String entityName , Object id , Boolean readOnly , LockOptions lockOptions ) {
1124
+ // Hibernate Reactive may need to use this
1125
+ protected LoadEvent makeLoadEvent (String entityName , Object id , Boolean readOnly , LockOptions lockOptions ) {
1124
1126
final LoadEvent event = loadEvent ;
1125
1127
if ( event == null ) {
1126
1128
return new LoadEvent ( id , entityName , lockOptions , this , readOnly );
@@ -1141,7 +1143,8 @@ private LoadEvent makeLoadEvent(String entityName, Object id, Boolean readOnly,
1141
1143
* Helper to avoid creating many new instances of {@link LoadEvent}.
1142
1144
* It's an allocation hot spot.
1143
1145
*/
1144
- private LoadEvent makeLoadEvent (String entityName , Object id , Boolean readOnly , boolean isAssociationFetch ) {
1146
+ // Hibernate Reactive may need to use this
1147
+ protected LoadEvent makeLoadEvent (String entityName , Object id , Boolean readOnly , boolean isAssociationFetch ) {
1145
1148
final LoadEvent event = loadEvent ;
1146
1149
if ( event == null ) {
1147
1150
return new LoadEvent ( id , entityName , isAssociationFetch , this , readOnly );
@@ -1158,7 +1161,8 @@ private LoadEvent makeLoadEvent(String entityName, Object id, Boolean readOnly,
1158
1161
}
1159
1162
}
1160
1163
1161
- private void releasePostLoadEvent (PostLoadEvent event ) {
1164
+ // Hibernate Reactive may need to use this
1165
+ protected void releasePostLoadEvent (PostLoadEvent event ) {
1162
1166
if ( postLoadEvent == null ) {
1163
1167
event .setEntity ( null );
1164
1168
event .setId ( null );
@@ -1167,7 +1171,8 @@ private void releasePostLoadEvent(PostLoadEvent event) {
1167
1171
}
1168
1172
}
1169
1173
1170
- private void releaseLoadEvent (LoadEvent event ) {
1174
+ // Hibernate Reactive may need to use this
1175
+ protected void releaseLoadEvent (LoadEvent event ) {
1171
1176
if ( loadEvent == null ) {
1172
1177
event .setEntityClassName ( null );
1173
1178
event .setEntityId ( null );
@@ -2568,7 +2573,8 @@ private void checkTransactionNeededForLock(LockMode lockMode) {
2568
2573
}
2569
2574
}
2570
2575
2571
- private static Boolean readOnlyHint (Map <String , Object > properties ) {
2576
+ // Hibernate Reactive may need to use this
2577
+ protected static Boolean readOnlyHint (Map <String , Object > properties ) {
2572
2578
if ( properties == null ) {
2573
2579
return null ;
2574
2580
}
@@ -3056,7 +3062,8 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound
3056
3062
eventListenerGroups = getFactory ().getEventListenerGroups ();
3057
3063
}
3058
3064
3059
- private Boolean getReadOnlyFromLoadQueryInfluencers () {
3065
+ // Used by Hibernate reactive
3066
+ protected Boolean getReadOnlyFromLoadQueryInfluencers () {
3060
3067
return loadQueryInfluencers != null ? loadQueryInfluencers .getReadOnly () : null ;
3061
3068
}
3062
3069
}
0 commit comments