aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/iciql/ModelUtils.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-08 12:43:46 -0400
committerJames Moger <james.moger@gmail.com>2011-08-08 12:43:46 -0400
commit05097c891abcd48a82e8f7c55f14fbd5c38d9cc8 (patch)
tree4eed2b899013f944d35225af8e807a5bb6267085 /src/com/iciql/ModelUtils.java
parentf44168da2824063985f8ecfa1a75f9984e8f7fb0 (diff)
downloadiciql-05097c891abcd48a82e8f7c55f14fbd5c38d9cc8.tar.gz
iciql-05097c891abcd48a82e8f7c55f14fbd5c38d9cc8.zip
Do not generate primitive mappings. Prepare v0.6.3 release.v0.6.3
Diffstat (limited to 'src/com/iciql/ModelUtils.java')
-rw-r--r--src/com/iciql/ModelUtils.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/iciql/ModelUtils.java b/src/com/iciql/ModelUtils.java
index 4607e30..579c7f6 100644
--- a/src/com/iciql/ModelUtils.java
+++ b/src/com/iciql/ModelUtils.java
@@ -197,8 +197,13 @@ class ModelUtils {
}
Class<?> mappedClass = null;
for (Class<?> clazz : SUPPORTED_TYPES.keySet()) {
- if (SUPPORTED_TYPES.get(clazz).equalsIgnoreCase(sqlType)) {
+ if (clazz.isPrimitive()) {
+ // do not map from SQL TYPE to primitive type
+ continue;
+ }
+ if (SUPPORTED_TYPES.get(clazz).equalsIgnoreCase(sqlType)) {
mappedClass = clazz;
+
break;
}
}