summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/main/java/io/trygvis/persistence/SqlEntity.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-03 12:33:39 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-03 12:33:39 +0200
commit34137b599dbea13c94224dff2955376b1394dbc9 (patch)
tree889b4c334014965e451f8d9b308b952a13b4d8d5 /container-compiler-plugin/src/main/java/io/trygvis/persistence/SqlEntity.java
parent4e794b5ed03e5020770becb068d11e6838feec64 (diff)
downloadcontainer-playground-34137b599dbea13c94224dff2955376b1394dbc9.tar.gz
container-playground-34137b599dbea13c94224dff2955376b1394dbc9.tar.bz2
container-playground-34137b599dbea13c94224dff2955376b1394dbc9.tar.xz
container-playground-34137b599dbea13c94224dff2955376b1394dbc9.zip
wip
Diffstat (limited to 'container-compiler-plugin/src/main/java/io/trygvis/persistence/SqlEntity.java')
-rw-r--r--container-compiler-plugin/src/main/java/io/trygvis/persistence/SqlEntity.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/container-compiler-plugin/src/main/java/io/trygvis/persistence/SqlEntity.java b/container-compiler-plugin/src/main/java/io/trygvis/persistence/SqlEntity.java
new file mode 100644
index 0000000..e298eee
--- /dev/null
+++ b/container-compiler-plugin/src/main/java/io/trygvis/persistence/SqlEntity.java
@@ -0,0 +1,17 @@
+package io.trygvis.persistence;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.CLASS)
+@Target(ElementType.TYPE)
+public @interface SqlEntity {
+ /**
+ * The name of a class that implements {@link io.trygvis.persistence.TypeHandler}.
+ *
+ * The class needs to be available at compile time, but not runtime.
+ */
+ String value();
+}