aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/iciql/ModelUtils.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-12 14:15:57 -0400
committerJames Moger <james.moger@gmail.com>2011-08-12 14:15:57 -0400
commit783797ff9ddfafa19481fda5295fcacd3c9b51cd (patch)
tree6e4902561c5fabdfdc3e776629085375a470998e /src/com/iciql/ModelUtils.java
parentbb6d90fe0caa40a54ffb44e36289af4d2c708644 (diff)
downloadiciql-783797ff9ddfafa19481fda5295fcacd3c9b51cd.tar.gz
iciql-783797ff9ddfafa19481fda5295fcacd3c9b51cd.zip
Always enforce strict type mapping.
Diffstat (limited to 'src/com/iciql/ModelUtils.java')
-rw-r--r--src/com/iciql/ModelUtils.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/iciql/ModelUtils.java b/src/com/iciql/ModelUtils.java
index 441bca7..048ce8d 100644
--- a/src/com/iciql/ModelUtils.java
+++ b/src/com/iciql/ModelUtils.java
@@ -146,11 +146,9 @@ class ModelUtils {
*
* @param fieldDef
* the field to map
- * @param strictTypeMapping
- * throws a IciqlException if type is unsupported
* @return
*/
- static String getDataType(FieldDefinition fieldDef, boolean strictTypeMapping) {
+ static String getDataType(FieldDefinition fieldDef) {
Class<?> fieldClass = fieldDef.field.getType();
if (fieldClass.isEnum()) {
switch (fieldDef.enumType) {
@@ -165,9 +163,6 @@ class ModelUtils {
if (SUPPORTED_TYPES.containsKey(fieldClass)) {
return SUPPORTED_TYPES.get(fieldClass);
}
- if (!strictTypeMapping) {
- return "VARCHAR";
- }
throw new IciqlException("Unsupported type " + fieldClass.getName());
}