Skip to content

Commit 561907a

Browse files
committed
HHH-18815 WTF is going on here??
Signed-off-by: Gavin King <[email protected]>
1 parent a259dd3 commit 561907a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public EntityMetamodel(
321321
}
322322
else {
323323
generators[i] = generator;
324-
if ( !generator.allowMutation() ) {
324+
if ( generator.generatedOnExecution() && !generator.allowMutation() ) {
325325
propertyInsertability[i] = false;
326326
propertyUpdateability[i] = false;
327327
propertyCheckability[i] = false;

0 commit comments

Comments
 (0)