diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/BasicAttribute.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/BasicAttribute.java index fa767413ad..a766dde262 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/BasicAttribute.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/BasicAttribute.java @@ -136,7 +136,6 @@ public class BasicAttribute extends MappedAttribute { if ( isId() ) { // an id must be unique and cannot be nullable for ( Column columnValue : getColumnValues() ) { - columnValue.setUnique( true ); columnValue.setNullable( false ); } identifierGeneratorDefinition = checkGeneratedValueAnnotation();