summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-04 20:09:06 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-04 20:09:06 +0200
commitfd6f806608d1047296cbb1ae7ea4a989fe23553b (patch)
treebe38c3b783ad656605bdf8808aa32a497d0ebd0f /container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java
parentf0a9ad191465bba0e7ddaea700d9667be699fec3 (diff)
downloadcontainer-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.java7
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);
}