aboutsummaryrefslogtreecommitdiffstats
path: root/src/site/model_classes.mkd
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-10-29 17:12:14 -0400
committerJames Moger <james.moger@gitblit.com>2014-10-29 17:12:14 -0400
commit8d28bc740c9bcb76186e7572f74a144397e780ce (patch)
tree1815e1d21df77e352ba2e8106557f71cb5561a8e /src/site/model_classes.mkd
parentbdb2899da4cbb27016d85c5e4fe268ddbccef546 (diff)
downloadiciql-8d28bc740c9bcb76186e7572f74a144397e780ce.tar.gz
iciql-8d28bc740c9bcb76186e7572f74a144397e780ce.zip
Support data type adapters
This allows custom types to be (de)serialized into a standard JDBC type or to support db-specific data types, like the Postgres json and xml types.
Diffstat (limited to 'src/site/model_classes.mkd')
-rw-r--r--src/site/model_classes.mkd5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/site/model_classes.mkd b/src/site/model_classes.mkd
index cb21dcd..747c094 100644
--- a/src/site/model_classes.mkd
+++ b/src/site/model_classes.mkd
@@ -73,6 +73,8 @@ can be used for all iciql expressions
can not be directly referenced in an expression</td></tr>
<tr><td>byte []</td> <td></td>
<td>BLOB</td><tr/>
+<tr><td>Custom</td> <td>create a DataTypeAdapter&lt;Custom&gt;</td>
+<td>Custom</td><tr/>
<tr><td colspan="3"><b>H2 Database Types</b><br/>
fully supported when paired with an H2 database
@@ -180,6 +182,9 @@ public class Product {
@IQColumn
private Availability availability;
+
+ @IQColumn(typeAdapter = MyCustomClassAdapter.class)
+ private MyCustomClass;
// ignored because it is not annotated AND the class is @IQTable annotated
private Integer ignoredField;