From bb6d90fe0caa40a54ffb44e36289af4d2c708644 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 12 Aug 2011 14:07:53 -0400 Subject: [PATCH] Renamed @IQTable.createIfRequired to @IQTable.create --- docs/05_releases.mkd | 1 + src/com/iciql/Iciql.java | 2 +- src/com/iciql/TableDefinition.java | 2 +- tests/com/iciql/test/models/ProductNoCreateTable.java | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) 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") -- 2.39.5