HHH-10715 Make IdentifierProperty immutable

This commit is contained in:
Sanne Grinovero 2020-10-10 20:23:00 +01:00
parent 7870329b77
commit ba0bf0d619
1 changed files with 7 additions and 6 deletions

View File

@ -18,12 +18,13 @@ import org.hibernate.type.Type;
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class IdentifierProperty extends AbstractAttribute implements IdentifierAttribute { public class IdentifierProperty extends AbstractAttribute implements IdentifierAttribute {
private boolean virtual;
private boolean embedded; private final boolean virtual;
private IdentifierValue unsavedValue; private final boolean embedded;
private IdentifierGenerator identifierGenerator; private final IdentifierValue unsavedValue;
private boolean identifierAssignedByInsert; private final IdentifierGenerator identifierGenerator;
private boolean hasIdentifierMapper; private final boolean identifierAssignedByInsert;
private final boolean hasIdentifierMapper;
/** /**
* Construct a non-virtual identifier property. * Construct a non-virtual identifier property.