File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ public boolean allowAssignedIdentifiers() {
3434 return true ;
3535 }
3636
37+ @ Override
38+ public boolean allowMutation () {
39+ return true ;
40+ }
41+
3742 @ Override
3843 public EnumSet <EventType > getEventTypes () {
3944 return EventTypeSets .NONE ;
Original file line number Diff line number Diff line change @@ -324,9 +324,11 @@ public EntityMetamodel(
324324 if ( !generator .allowMutation () ) {
325325 propertyInsertability [i ] = false ;
326326 propertyUpdateability [i ] = false ;
327+ propertyCheckability [i ] = false ;
327328 }
329+ final boolean noParameter = generatedWithNoParameter ( generator );
328330 if ( generator .generatesOnInsert () ) {
329- propertyInsertability [i ] = !generatedWithNoParameter ( generator ) ;
331+ propertyInsertability [i ] = !noParameter ;
330332 if ( generator .generatedOnExecution () ) {
331333 foundPostInsertGeneratedValues = true ;
332334 if ( generator instanceof BeforeExecutionGenerator ) {
@@ -338,7 +340,7 @@ public EntityMetamodel(
338340 }
339341 }
340342 if ( generator .generatesOnUpdate () ) {
341- propertyUpdateability [i ] = !generatedWithNoParameter ( generator ) ;
343+ propertyUpdateability [i ] = !noParameter ;
342344 if ( generator .generatedOnExecution () ) {
343345 foundPostUpdateGeneratedValues = true ;
344346 if ( generator instanceof BeforeExecutionGenerator ) {
You can’t perform that action at this time.
0 commit comments