summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/test/resources/io
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-03 15:06:46 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-03 15:06:46 +0200
commitb5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a (patch)
treeede2d0de570efcbb546fabcb2d5d050511792ae1 /container-compiler-plugin/src/test/resources/io
parent34137b599dbea13c94224dff2955376b1394dbc9 (diff)
downloadcontainer-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.tar.gz
container-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.tar.bz2
container-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.tar.xz
container-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.zip
wip
Diffstat (limited to 'container-compiler-plugin/src/test/resources/io')
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Car.java8
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java27
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/package-info.java3
3 files changed, 38 insertions, 0 deletions
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Car.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Car.java
new file mode 100644
index 0000000..4b80afc
--- /dev/null
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Car.java
@@ -0,0 +1,8 @@
+package io.trygvis.persistence.test;
+
+import javax.persistence.Entity;
+
+@Entity
+public class Car {
+ private int year;
+}
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java
new file mode 100644
index 0000000..131691f
--- /dev/null
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java
@@ -0,0 +1,27 @@
+package io.trygvis.persistence.test;
+
+import io.trygvis.persistence.SqlEntity;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import java.util.Date;
+
+@Entity
+@SqlEntity("io.trygvis.persistence.test.PersonTypeHandler")
+public class Person {
+ @Id
+ public Long id;
+
+ public Date birthDate;
+
+ @ManyToOne
+ public Person mother;
+
+// @ManyToOne
+// public Person father;
+
+// @OneToMany(mappedBy = "id")
+// @OrderBy("birthDate asc")
+// private List<Person> children = new ArrayList<>();
+}
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/package-info.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/package-info.java
new file mode 100644
index 0000000..9ca5e93
--- /dev/null
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/package-info.java
@@ -0,0 +1,3 @@
+@SqlEntitySet package io.trygvis.persistence.test;
+
+import io.trygvis.persistence.SqlEntitySet;