diff --git a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java index 713717420..393dd2d71 100644 --- a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java +++ b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java @@ -147,6 +147,8 @@ public class StandardTableExporter implements Exporter { applyTableTypeString( buf ); + buf.append(table.getPrimaryKey().sqlDistributeString(dialect)); + List sqlStrings = new ArrayList(); sqlStrings.add( buf.toString() ); @@ -154,8 +156,6 @@ public class StandardTableExporter implements Exporter
{ applyInitCommands( table, sqlStrings ); - buf.append(table.getPrimaryKey().sqlDistributeString(dialect)); - return sqlStrings.toArray( new String[ sqlStrings.size() ] ); }