summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/test/resources/io/trygvis
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-11 22:35:02 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-11 22:35:02 +0200
commite78c0a1e4a4ebc71502dceccc9ae640862b7ce9e (patch)
tree38517a79011ee280d08da06ce20dba1ac7aebd62 /container-compiler-plugin/src/test/resources/io/trygvis
parent41704c6a57d53b90b4e764ea4fb9c8ff81ced500 (diff)
downloadcontainer-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.tar.gz
container-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.tar.bz2
container-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.tar.xz
container-playground-e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e.zip
o Overhauling inheritance, adding a decent start of support for @MappedSuperclass.
Diffstat (limited to 'container-compiler-plugin/src/test/resources/io/trygvis')
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/Car.java (renamed from container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Car.java)2
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/ChildEntity.java (renamed from container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java)2
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/ParentEntity.java (renamed from container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ParentEntity.java)4
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/Person.java (renamed from container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java)2
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/package-info.java4
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/A.java40
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/package-info.java4
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/package-info.java4
8 files changed, 54 insertions, 8 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/basic/Car.java
index 4b80afc..2781712 100644
--- a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Car.java
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/Car.java
@@ -1,4 +1,4 @@
-package io.trygvis.persistence.test;
+package io.trygvis.persistence.test.basic;
import javax.persistence.Entity;
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/ChildEntity.java
index ff91680..208ee9a 100644
--- a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/ChildEntity.java
@@ -1,4 +1,4 @@
-package io.trygvis.persistence.test;
+package io.trygvis.persistence.test.basic;
import javax.persistence.Entity;
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ParentEntity.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/ParentEntity.java
index 9925f7e..3dd2375 100644
--- a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ParentEntity.java
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/ParentEntity.java
@@ -1,7 +1,9 @@
-package io.trygvis.persistence.test;
+package io.trygvis.persistence.test.basic;
import javax.persistence.Id;
+import javax.persistence.MappedSuperclass;
+@MappedSuperclass
public class ParentEntity {
@Id
public Long id;
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/basic/Person.java
index 47a2fdd..3cbdb84 100644
--- a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/Person.java
@@ -1,4 +1,4 @@
-package io.trygvis.persistence.test;
+package io.trygvis.persistence.test.basic;
import javax.persistence.Entity;
import javax.persistence.Id;
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/package-info.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/package-info.java
new file mode 100644
index 0000000..780fae5
--- /dev/null
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/basic/package-info.java
@@ -0,0 +1,4 @@
+@SqlEntitySet(name = "Basic")
+package io.trygvis.persistence.test.basic;
+
+import io.trygvis.persistence.SqlEntitySet;
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/A.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/A.java
new file mode 100644
index 0000000..99770da
--- /dev/null
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/A.java
@@ -0,0 +1,40 @@
+package io.trygvis.persistence.test.inheritance;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.MappedSuperclass;
+import javax.persistence.SequenceGenerator;
+
+public class A {
+ public Integer a;
+}
+
+@SequenceGenerator(name = "id", sequenceName = "id_seq")
+@MappedSuperclass
+class B extends A {
+ public Integer b;
+}
+
+class C extends B {
+ public Integer c;
+}
+
+@Entity
+class D extends C {
+ @Id
+ public Integer d;
+
+ private int d2;
+
+ public Integer getD2() {
+ return d2;
+ }
+
+ public void setD2(Integer d2) {
+ this.d2 = d2;
+ }
+}
+
+class E extends D {
+ public int e;
+}
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/package-info.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/package-info.java
new file mode 100644
index 0000000..7382c7a
--- /dev/null
+++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/inheritance/package-info.java
@@ -0,0 +1,4 @@
+@SqlEntitySet(name = "Inheritance")
+package io.trygvis.persistence.test.inheritance;
+
+import io.trygvis.persistence.SqlEntitySet;
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
deleted file mode 100644
index 5a80282..0000000
--- a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/package-info.java
+++ /dev/null
@@ -1,4 +0,0 @@
-@SqlEntitySet(name = "Test")
-package io.trygvis.persistence.test;
-
-import io.trygvis.persistence.SqlEntitySet;