From ba0bf0d6198c91c13b84767a2533f0ee3b6631d6 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Sat, 10 Oct 2020 20:23:00 +0100 Subject: [PATCH] HHH-10715 Make IdentifierProperty immutable --- .../org/hibernate/tuple/IdentifierProperty.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/tuple/IdentifierProperty.java b/hibernate-core/src/main/java/org/hibernate/tuple/IdentifierProperty.java index fe2d28e4f4..61404b5b15 100644 --- a/hibernate-core/src/main/java/org/hibernate/tuple/IdentifierProperty.java +++ b/hibernate-core/src/main/java/org/hibernate/tuple/IdentifierProperty.java @@ -18,12 +18,13 @@ import org.hibernate.type.Type; * @author Steve Ebersole */ public class IdentifierProperty extends AbstractAttribute implements IdentifierAttribute { - private boolean virtual; - private boolean embedded; - private IdentifierValue unsavedValue; - private IdentifierGenerator identifierGenerator; - private boolean identifierAssignedByInsert; - private boolean hasIdentifierMapper; + + private final boolean virtual; + private final boolean embedded; + private final IdentifierValue unsavedValue; + private final IdentifierGenerator identifierGenerator; + private final boolean identifierAssignedByInsert; + private final boolean hasIdentifierMapper; /** * Construct a non-virtual identifier property.