From: James Moger Date: Fri, 12 Aug 2011 18:07:53 +0000 (-0400) Subject: Renamed @IQTable.createIfRequired to @IQTable.create X-Git-Tag: v0.6.4~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bb6d90fe0caa40a54ffb44e36289af4d2c708644;p=iciql.git Renamed @IQTable.createIfRequired to @IQTable.create --- diff --git a/docs/05_releases.mkd b/docs/05_releases.mkd index 3266ba9..5eba86f 100644 --- a/docs/05_releases.mkd +++ b/docs/05_releases.mkd @@ -7,6 +7,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%* - api change release (API v4) +- @IQTable.createIfRequired -> @IQTable.create - don't INSERT primitive autoIncrement primaryKey fields, let database assign value - full support for primitives in all clauses - DECIMAL(length, scale) support diff --git a/src/com/iciql/Iciql.java b/src/com/iciql/Iciql.java index 33b954b..47cf9c1 100644 --- a/src/com/iciql/Iciql.java +++ b/src/com/iciql/Iciql.java @@ -341,7 +341,7 @@ public interface Iciql { * Whether or not iciql tries to create the table and indexes. Default: * true. */ - boolean createIfRequired() default true; + boolean create() default true; /** * Whether only supported types are mapped. If true, unsupported mapped diff --git a/src/com/iciql/TableDefinition.java b/src/com/iciql/TableDefinition.java index 729cb90..36a28d3 100644 --- a/src/com/iciql/TableDefinition.java +++ b/src/com/iciql/TableDefinition.java @@ -591,7 +591,7 @@ public class TableDefinition { } // allow control over createTableIfRequired() - createTableIfRequired = tableAnnotation.createIfRequired(); + createTableIfRequired = tableAnnotation.create(); // model version if (clazz.isAnnotationPresent(IQVersion.class)) { diff --git a/tests/com/iciql/test/models/ProductNoCreateTable.java b/tests/com/iciql/test/models/ProductNoCreateTable.java index 074af35..cbf96e9 100644 --- a/tests/com/iciql/test/models/ProductNoCreateTable.java +++ b/tests/com/iciql/test/models/ProductNoCreateTable.java @@ -27,7 +27,7 @@ import com.iciql.Iciql.IQTable; * A table containing product data. */ -@IQTable(createIfRequired = false) +@IQTable(create = false) public class ProductNoCreateTable { @SuppressWarnings("unused")