diff options
author | James Moger <james.moger@gmail.com> | 2012-01-04 22:12:56 -0500 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2012-01-04 22:12:56 -0500 |
commit | 0932e559b420d46f8394a464c466804c1df0ede1 (patch) | |
tree | 822a49e35ce8ff3d7dd37cff84cf9e19bce0e6ae /docs | |
parent | cc0c4f0e0b632ebfb1635e5ed2fe9a2119240157 (diff) | |
download | iciql-0932e559b420d46f8394a464c466804c1df0ede1.tar.gz iciql-0932e559b420d46f8394a464c466804c1df0ede1.zip |
Disallow multiple instances of an enum within a model class
Diffstat (limited to 'docs')
-rw-r--r-- | docs/01_model_classes.mkd | 6 | ||||
-rw-r--r-- | docs/05_releases.mkd | 12 |
2 files changed, 15 insertions, 3 deletions
diff --git a/docs/01_model_classes.mkd b/docs/01_model_classes.mkd index f534660..3fb1d15 100644 --- a/docs/01_model_classes.mkd +++ b/docs/01_model_classes.mkd @@ -59,13 +59,13 @@ can be used for all iciql expressions <td>TIMESTAMP</td></tr>
<tr><td>java.lang.Enum.name()<br/>*default type*</td><td></td>
-<td>VARCHAR *(length > 0)* or CLOB *(length == 0)*<br/>*EnumType.NAME*</td></tr>
+<td>VARCHAR *(length > 0)* or CLOB *(length == 0)*<br/>*EnumType.NAME*<br/><i>can only **declare and explicitly reference** one instance of <u>each enum type</u> per model<br/>multiple instances of an enum type within a model is allowed if not using where/set/on/and/or/groupBy/orderBy(enum)</i></td></tr>
<tr><td>java.lang.Enum.ordinal()</td><td></td>
-<td>INT<br/>*EnumType.ORDINAL*</td></tr>
+<td>INT<br/>*EnumType.ORDINAL*<br/><i>can only **declare and explicitly reference** one instance of <u>each enum type</u> per model<br/>multiple instances of an enum type within a model is allowed if not using where/set/on/and/or/groupBy/orderBy(enum)</i></td></tr>
<tr><td>java.lang.Enum implements<br/>*com.iciql.Iciql.EnumId.enumId()*</td><td></td>
-<td>INT<br/>*EnumType.ENUMID*</td></tr>
+<td>INT<br/>*EnumType.ENUMID*<br/><i>can only **declare and explicitly reference** one instance of <u>each enum type</u> per model<br/>multiple instances of an enum type within a model is allowed if not using where/set/on/and/or/groupBy/orderBy(enum)</i></td></tr>
<tr><td colspan="3"><b>Partially Supported Types</b><br/>
can not be directly referenced in an expression</td></tr>
diff --git a/docs/05_releases.mkd b/docs/05_releases.mkd index 33a3e6a..685120b 100644 --- a/docs/05_releases.mkd +++ b/docs/05_releases.mkd @@ -6,6 +6,18 @@ **%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%*
+- added *Query.toSQL()* and *QueryWhere.toSQL()* methods which, when combined with the following new methods, allows for generation of a parameterized, static sql string to be reused with a dynamic query or a PreparedStatement.
+ - QueryCondition.isParameter()
+ - QueryCondition.atLeastParameter()
+ - QueryCondition.atMostParameter()
+ - QueryCondition.exceedsParameter()
+ - QueryCondition.lessThanParameter()
+ - QueryCondition.likeParameter()
+ - QueryCondition.isNotParameter()
+- Disallow **declaring and explicitly referencing** multiple instances of an enum type within a single model.<br/>A runtime exception will be thrown if an attempt to use where/set/on/and/or/groupBy/orderBy(enum) and your model has multiple fields of a single enum type.
+
+**0.7.6** *released 2011-12-21*
+
- Iciql now tries to instantiate a default value from an annotated default value IFF the field object is null, it is specified *nullable = false*, and a defaultValue exists. This only applies to *db.insert* or *db.update*.
**0.7.5** *released 2011-12-12*
|