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 18:50:18 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-04 18:50:18 +0200
commit6d4c6960e69b53c124bd84beb3d008bd5a4bb319 (patch)
tree1bd812b044d35b629ac2b49f4910b28cfdc29a12 /container-compiler-plugin/src/main/java/io/trygvis/persistence/GeneratorConfiguration.java
parent381c368b8907640bdd7cd81db2294724e082a119 (diff)
downloadcontainer-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.tar.gz
container-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.tar.bz2
container-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.tar.xz
container-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.zip
wip
o Adding Joda time's DateTime and UUID. o Registering @SequenceGenerator's on fields and getters. o Skipping static methods. o Generating SQL to drop sequences.
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.java2
1 files changed, 2 insertions, 0 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 37d8146..9df6c35 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
@@ -17,6 +17,8 @@ public class GeneratorConfiguration {
typeHandlers.put(new TypeRef(Long.class), new TypeHandler.LongTypeHandler());
typeHandlers.put(new TypeRef(String.class), new TypeHandler.StringTypeHandler());
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);
}