From f0a9ad191465bba0e7ddaea700d9667be699fec3 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 4 Aug 2013 19:14:14 +0200 Subject: wip o Adding support for int and long types. --- .../src/main/java/io/trygvis/container/compiler/EntityHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'container-compiler-plugin/src/main/java/io/trygvis/container/compiler/EntityHandler.java') 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)); -- cgit v1.2.3