summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/test/resources/io
diff options
context:
space:
mode:
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;