@@ -4,6 +4,7 @@ | |||
**%VERSION%** ([zip](http://code.google.com/p/iciql/downloads/detail?name=%ZIP%)|[jar](http://code.google.com/p/iciql/downloads/detail?name=%JAR%)) *released %BUILDDATE%* | |||
- Fixed order of DEFAULT value in create table statement (issue 11) | |||
- Fixed password bug in model generator (issue 7) | |||
**1.1.0** *released 2012-08-20* |
@@ -134,10 +134,6 @@ public class SQLDialectDefault implements SQLDialect { | |||
field.isAutoIncrement, field.isPrimaryKey); | |||
} | |||
if (!field.nullable) { | |||
buff.append(" NOT NULL"); | |||
} | |||
// default values | |||
if (!field.isAutoIncrement && !field.isPrimaryKey) { | |||
String dv = field.defaultValue; | |||
@@ -148,6 +144,10 @@ public class SQLDialectDefault implements SQLDialect { | |||
} | |||
} | |||
} | |||
if (!field.nullable) { | |||
buff.append(" NOT NULL"); | |||
} | |||
} | |||
// if table does not have identity column then specify primary key |