]> source.dussan.org Git - iciql.git/commitdiff
Renamed @IQTable.createIfRequired to @IQTable.create
authorJames Moger <james.moger@gmail.com>
Fri, 12 Aug 2011 18:07:53 +0000 (14:07 -0400)
committerJames Moger <james.moger@gmail.com>
Fri, 12 Aug 2011 18:07:53 +0000 (14:07 -0400)
docs/05_releases.mkd
src/com/iciql/Iciql.java
src/com/iciql/TableDefinition.java
tests/com/iciql/test/models/ProductNoCreateTable.java

index 3266ba93f3e7da1421f0bcb06ab67a5b54a75c49..5eba86fc16a8631006ec2e1457b10e9947d00c62 100644 (file)
@@ -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%)) &nbsp; *released %BUILDDATE%*\r
 \r
 - api change release (API v4)\r
+- @IQTable.createIfRequired -> @IQTable.create\r
 - don't INSERT primitive autoIncrement primaryKey fields, let database assign value\r
 - full support for primitives in all clauses\r
 - DECIMAL(length, scale) support\r
index 33b954bb061091dc6d726a9483841a1bf7d0cbcb..47cf9c1f8069b3c4d982d18153fe197707665333 100644 (file)
@@ -341,7 +341,7 @@ public interface Iciql {
                 * Whether or not iciql tries to create the table and indexes. Default:\r
                 * true.\r
                 */\r
-               boolean createIfRequired() default true;\r
+               boolean create() default true;\r
 \r
                /**\r
                 * Whether only supported types are mapped. If true, unsupported mapped\r
index 729cb90cc36345a11664e1a784250a0e66d4a0e9..36a28d3d50d22587a4d872b7ab2404b354be127a 100644 (file)
@@ -591,7 +591,7 @@ public class TableDefinition<T> {
                        }\r
 \r
                        // allow control over createTableIfRequired()\r
-                       createTableIfRequired = tableAnnotation.createIfRequired();\r
+                       createTableIfRequired = tableAnnotation.create();\r
 \r
                        // model version\r
                        if (clazz.isAnnotationPresent(IQVersion.class)) {\r
index 074af35805e5eb8230067d51e2e38658d57c192b..cbf96e9ee6a9aed194d2eca7ff0b5d2ab667492d 100644 (file)
@@ -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")