From 05097c891abcd48a82e8f7c55f14fbd5c38d9cc8 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 8 Aug 2011 12:43:46 -0400 Subject: Do not generate primitive mappings. Prepare v0.6.3 release. --- src/com/iciql/Constants.java | 6 +++--- src/com/iciql/ModelUtils.java | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/com/iciql/Constants.java b/src/com/iciql/Constants.java index d78f1db..b010050 100644 --- a/src/com/iciql/Constants.java +++ b/src/com/iciql/Constants.java @@ -25,7 +25,7 @@ public class Constants { // The build script extracts this exact line so be careful editing it // and only use A-Z a-z 0-9 .-_ in the string. - public static final String VERSION = "0.6.2"; + public static final String VERSION = "0.6.3"; // The build script extracts this exact line so be careful editing it // and only use A-Z a-z 0-9 .-_ in the string. @@ -33,10 +33,10 @@ public class Constants { // The build script extracts this exact line so be careful editing it // and only use A-Z a-z 0-9 .-_ in the string. - public static final String API_CURRENT = "2"; + public static final String API_CURRENT = "3"; // The build script extracts this exact line so be careful editing it // and only use A-Z a-z 0-9 .-_ in the string. - public static final String API_PREVIOUS = "1"; + public static final String API_PREVIOUS = "2"; } 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; } } -- cgit v1.2.3