File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
hibernate-core/src/main/java/org/hibernate/tuple/entity Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -310,8 +310,9 @@ public EntityMetamodel(
310310 propertyInsertability [i ] = writePropertyValue ( (OnExecutionGenerator ) generator );
311311 }
312312 foundPostInsertGeneratedValues = foundPostInsertGeneratedValues
313- || generator instanceof OnExecutionGenerator ;
313+ || generatedOnExecution ;
314314 foundPreInsertGeneratedValues = foundPreInsertGeneratedValues
315+ || !generatedOnExecution
315316 || generator instanceof BeforeExecutionGenerator ;
316317 }
317318 else if ( !allowMutation ) {
@@ -321,9 +322,10 @@ else if ( !allowMutation ) {
321322 if ( generatedOnExecution ) {
322323 propertyUpdateability [i ] = writePropertyValue ( (OnExecutionGenerator ) generator );
323324 }
324- foundPostUpdateGeneratedValues = foundPostUpdateGeneratedValues
325- || generator instanceof OnExecutionGenerator ;
326- foundPreUpdateGeneratedValues = foundPreUpdateGeneratedValues
325+ foundPostUpdateGeneratedValues = foundPostInsertGeneratedValues
326+ || generatedOnExecution ;
327+ foundPreUpdateGeneratedValues = foundPreInsertGeneratedValues
328+ || !generatedOnExecution
327329 || generator instanceof BeforeExecutionGenerator ;
328330 }
329331 else if ( !allowMutation ) {
You can’t perform that action at this time.
0 commit comments