diff options
author | James Moger <james.moger@gmail.com> | 2011-08-08 09:32:30 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-08 09:32:30 -0400 |
commit | 083e5031c24efd8cdb08140b9f982604a431ec26 (patch) | |
tree | 07b3d1b16eee3122f7c8792839a4ce493a2615ad /src/com/iciql/TableInspector.java | |
parent | 1ee319a7e4bea883da99ab7c2068a740e2cdf985 (diff) | |
download | iciql-083e5031c24efd8cdb08140b9f982604a431ec26.tar.gz iciql-083e5031c24efd8cdb08140b9f982604a431ec26.zip |
Fully support H2 UUID type. Cleanup imports for generated models.
Diffstat (limited to 'src/com/iciql/TableInspector.java')
-rw-r--r-- | src/com/iciql/TableInspector.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/iciql/TableInspector.java b/src/com/iciql/TableInspector.java index a4b3b8f..080e20e 100644 --- a/src/com/iciql/TableInspector.java +++ b/src/com/iciql/TableInspector.java @@ -326,8 +326,11 @@ public class TableInspector { sb.append("// unsupported type " + col.type); } else { // Imports - // don't import byte [] - if (!clazz.equals(byte[].class)) { + // don't import primitives, java.lang classes, or byte [] + if (clazz.getPackage() == null) { + } else if (clazz.getPackage().getName().equals("java.lang")) { + } else if (clazz.equals(byte[].class)) { + } else { imports.add(clazz.getCanonicalName()); } // @IQColumn |