diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 20:09:06 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 20:09:06 +0200 |
commit | fd6f806608d1047296cbb1ae7ea4a989fe23553b (patch) | |
tree | be38c3b783ad656605bdf8808aa32a497d0ebd0f /container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java | |
parent | f0a9ad191465bba0e7ddaea700d9667be699fec3 (diff) | |
download | container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.tar.gz container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.tar.bz2 container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.tar.xz container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.zip |
wip
o Adding support for enums. Will automatically use the name style, not ordinal.
Diffstat (limited to 'container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java')
-rw-r--r-- | container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java b/container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java index 48072de..3bf7b08 100644 --- a/container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java +++ b/container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java @@ -10,7 +10,6 @@ import java.util.TreeMap; public class GeneratorConfiguration { - private final Map<TypeRef, TypeHandler> primitiveTypeHandlers = new TreeMap<>(); private final Map<TypeRef, TypeHandler> typeHandlers = new TreeMap<>(); { @@ -22,8 +21,6 @@ public class GeneratorConfiguration { typeHandlers.put(new TypeRef(Date.class), new TypeHandler.DateTypeHandler()); typeHandlers.put(new TypeRef("org.joda.time.DateTime"), new TypeHandler.JodaDateTimeTypeHandler()); typeHandlers.put(new TypeRef("java.util.UUID"), new TypeHandler.UuidTypeHandler()); - - primitiveTypeHandlers.putAll(typeHandlers); } public void addTypeHandler(TypeRef type, TypeHandler typeHandler) { @@ -38,10 +35,6 @@ public class GeneratorConfiguration { return typeHandler; } - public boolean isPrimitive(TypeRef type) { - return primitiveTypeHandlers.containsKey(type); - } - public boolean hasTypeHandler(TypeRef type) { return typeHandlers.containsKey(type); } |