aboutsummaryrefslogtreecommitdiffstats
path: root/docs/01_model_classes.mkd
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-05 11:04:29 -0400
committerJames Moger <james.moger@gmail.com>2011-08-05 11:04:29 -0400
commitb865898879f0d0eb1e752b41562b463b0c31c517 (patch)
tree08c7204795719e9ca554203bb1310c1724c4f205 /docs/01_model_classes.mkd
parenta1ab11053107c8995b3f3e850fa14a2374c2013a (diff)
downloadiciql-b865898879f0d0eb1e752b41562b463b0c31c517.tar.gz
iciql-b865898879f0d0eb1e752b41562b463b0c31c517.zip
Simplified annotations. Interchangeable int-boolean runtime mapping.
Diffstat (limited to 'docs/01_model_classes.mkd')
-rw-r--r--docs/01_model_classes.mkd12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/01_model_classes.mkd b/docs/01_model_classes.mkd
index bf8d72c..fb81e0f 100644
--- a/docs/01_model_classes.mkd
+++ b/docs/01_model_classes.mkd
@@ -9,7 +9,7 @@ Alternatively, model classes can be automatically generated by iciql using the m
<table>
<tr><td>java.lang.String</td>
-<td>VARCHAR *(maxLength > 0)* or TEXT *(maxLength == 0)*</td></tr>
+<td>VARCHAR *(length > 0)* or TEXT *(length == 0)*</td></tr>
<tr><td>java.lang.Boolean</td>
<td>BIT</td></tr>
@@ -51,7 +51,7 @@ Alternatively, model classes can be automatically generated by iciql using the m
<td>BLOB</td></tr>
<tr><td>java.lang.Enum.name()</td>
-<td>VARCHAR (maxLength > 0) or TEXT (maxLength == 0)<br/>EnumType.STRING</td></tr>
+<td>VARCHAR (length > 0) or TEXT (length == 0)<br/>EnumType.STRING</td></tr>
<tr><td>java.lang.Enum.ordinal()</td>
<td>INT<br/>EnumType.ORDINAL</td></tr>
@@ -115,10 +115,10 @@ public class Product {
@IQColumn(primaryKey = true)
public Integer productId;
- @IQColumn(maxLength = 200, trimString = true)
+ @IQColumn(length = 200, trim = true)
public String productName;
- @IQColumn(maxLength = 50, trimString = true)
+ @IQColumn(length = 50, trim = true)
public String category;
@IQColumn
@@ -185,8 +185,8 @@ public class Product implements Iciql {
public void defineIQ() {
com.iciql.Define.primaryKey(productId);
com.iciql.Define.columnName(unitsInStock, "units");
- com.iciql.Define.maxLength(productName, 200);
- com.iciql.Define.maxLength(category, 50);
+ com.iciql.Define.length(productName, 200);
+ com.iciql.Define.length(category, 50);
com.iciql.Define.index(productName, category);
}
}