diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/MappedAttribute.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/MappedAttribute.java index 800c2844e5..db25d21ecd 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/MappedAttribute.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/MappedAttribute.java @@ -193,7 +193,7 @@ public abstract class MappedAttribute implements Comparable { annotations, JPADotNames.JOIN_COLUMN ); - if ( columnAnnotation != null ) { + if ( joinColumnAnnotation != null ) { columnValues.add( new Column( joinColumnAnnotation ) ); }