diff options
author | James Moger <james.moger@gmail.com> | 2011-08-12 14:15:57 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-12 14:15:57 -0400 |
commit | 783797ff9ddfafa19481fda5295fcacd3c9b51cd (patch) | |
tree | 6e4902561c5fabdfdc3e776629085375a470998e /src/com/iciql/ModelUtils.java | |
parent | bb6d90fe0caa40a54ffb44e36289af4d2c708644 (diff) | |
download | iciql-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.java | 7 |
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()); } |