diff options
author | James Moger <james.moger@gmail.com> | 2011-08-08 12:43:46 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-08 12:43:46 -0400 |
commit | 05097c891abcd48a82e8f7c55f14fbd5c38d9cc8 (patch) | |
tree | 4eed2b899013f944d35225af8e807a5bb6267085 /src/com/iciql/ModelUtils.java | |
parent | f44168da2824063985f8ecfa1a75f9984e8f7fb0 (diff) | |
download | iciql-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.java | 7 |
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; } } |