diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/Column.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/Column.java index 63320bc30f..ef17dc14b5 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/Column.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/Column.java @@ -74,7 +74,7 @@ public class Column { AnnotationValue uniqueValue = columnAnnotation.value( "unique" ); if ( uniqueValue != null ) { - this.unique = nameValue.asBoolean(); + this.unique = uniqueValue.asBoolean(); } AnnotationValue nullableValue = columnAnnotation.value( "nullable" );