diff options
Diffstat (limited to 'container-compiler-plugin/src/main/java/io/trygvis/container/compiler/EntityHandler.java')
-rw-r--r-- | container-compiler-plugin/src/main/java/io/trygvis/container/compiler/EntityHandler.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/EntityHandler.java b/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/EntityHandler.java index 53811d9..ae3443c 100644 --- a/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/EntityHandler.java +++ b/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/EntityHandler.java @@ -297,6 +297,12 @@ public class EntityHandler extends AbstractHandler { FieldMirror field; if (primitive) { + System.out.println("type = " + type); + TypeHandler typeHandler = generatorConfiguration.typeHandler(type); + System.out.println("typeHandler = " + typeHandler); + System.out.println("typeHandler.typeName() = " + typeHandler.typeName()); + // TODO: check for configuration conflict + notNull = !typeHandler.nullable; field = new FieldMirror(PRIMITIVE, accessorType, type, javaName, sqlName, id, notNull, unique); } else if (generatorConfiguration.hasTypeHandler(type)) { throw new CompilerException(var, "Missing type handler for type: " + type.fqName); @@ -311,7 +317,6 @@ public class EntityHandler extends AbstractHandler { } public void phase3(boolean errorRaised) throws Exception { - System.out.println("errorRaised = " + errorRaised); try { for (EntityMirror entity : sqlUnit.getEntities().values()) { writeFile(phase3(entity), sqlUnit.element(entity)); |