diff --git a/core/src/main/java/org/hibernate/mapping/Table.java b/core/src/main/java/org/hibernate/mapping/Table.java index 2ce26d72ce..8f5f2adb70 100644 --- a/core/src/main/java/org/hibernate/mapping/Table.java +++ b/core/src/main/java/org/hibernate/mapping/Table.java @@ -321,14 +321,13 @@ public class Table implements RelationalModel, Serializable { String defaultValue = column.getDefaultValue(); if ( defaultValue != null ) { alter.append( " default " ).append( defaultValue ); + } - if ( column.isNullable() ) { - alter.append( dialect.getNullColumnString() ); - } - else { - alter.append( " not null" ); - } - + if ( column.isNullable() ) { + alter.append( dialect.getNullColumnString() ); + } + else { + alter.append( " not null" ); } boolean useUniqueConstraint = column.isUnique() &&