summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java
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/persistence/test/Person.java
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/persistence/test/Person.java')
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java39
1 files changed, 0 insertions, 39 deletions
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
deleted file mode 100644
index 47a2fdd..0000000
--- a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package io.trygvis.persistence.test;
-
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.ManyToOne;
-import javax.persistence.SequenceGenerator;
-import java.util.Date;
-
-@Entity
-@SequenceGenerator(name = "id_seq")
-public class Person {
- @Id
- public Long id;
-
- public Date birthDate;
-
- @ManyToOne
- public Person mother;
-
- enum Gender {
- MALE, FEMALE
- }
-
- public final Gender gender;
-
-// @ManyToOne
-// public Person father;
-
-// @OneToMany(mappedBy = "id")
-// @OrderBy("birthDate asc")
-// private List<Person> children = new ArrayList<>();
-
- public Person(Long id, Date birthDate, Person mother, Gender gender) {
- this.id = id;
- this.birthDate = birthDate;
- this.mother = mother;
- this.gender = gender;
- }
-}