summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/01_model_classes.mkd17
-rw-r--r--docs/05_releases.mkd2
2 files changed, 18 insertions, 1 deletions
diff --git a/docs/01_model_classes.mkd b/docs/01_model_classes.mkd
index a0db6a1..8afcfa8 100644
--- a/docs/01_model_classes.mkd
+++ b/docs/01_model_classes.mkd
@@ -47,6 +47,12 @@ Alternatively, model classes can be automatically generated by iciql using the m
<tr><td>java.util.Date</td>
<td>TIMESTAMP</td></tr>
+<tr><td>byte []</td>
+<td>BLOB</td></tr>
+
+<tr><td>java.lang.Enum</td>
+<td>VARCHAR/TEXT *@IQEnum(STRING)* or INT *@IQEnum(ORDINAL)*</td></tr>
+
</table>
**NOTE:**<br/>
@@ -55,7 +61,6 @@ Please consult the `com.iciql.ModelUtils` class for details.
### Unsupported Types
- Java primitives (use their object counterparts instead)
-- binary types (BLOB, etc)
- array types
- custom types
@@ -83,7 +88,9 @@ The recommended approach to setup a model class is to annotate the class and fie
### Example Annotated Model
%BEGINCODE%
+import com.iciql.Iciql.EnumType;
import com.iciql.Iciql.IQColumn;
+import com.iciql.Iciql.IQEnum;
import com.iciql.Iciql.IQIndex;
import com.iciql.Iciql.IQTable;
@@ -94,6 +101,11 @@ import com.iciql.Iciql.IQTable;
})
public class Product {
+ @IQEnum(EnumType.ORDINAL)
+ public enum Availability {
+ ACTIVE, DISCONTINUED;
+ }
+
@IQColumn(primaryKey = true)
public Integer productId;
@@ -111,6 +123,9 @@ public class Product {
@IQColumn
private Integer reorderQuantity;
+
+ @IQColumn
+ private Availability availability;
public Product() {
// default constructor
diff --git a/docs/05_releases.mkd b/docs/05_releases.mkd
index db29860..50fda43 100644
--- a/docs/05_releases.mkd
+++ b/docs/05_releases.mkd
@@ -3,6 +3,8 @@
### Current Release
**%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%*
+- added BLOB support (issue 1)
+- added java.lang.Enum support (issue 2)
- api change release (API v2)
- annotations overhaul to reduce verbosity
- @IQSchema(name="public") -> @IQSchema("public")