diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-03 12:33:39 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-03 12:33:39 +0200 |
commit | 34137b599dbea13c94224dff2955376b1394dbc9 (patch) | |
tree | 889b4c334014965e451f8d9b308b952a13b4d8d5 /container-compiler-plugin/src/test/resources | |
parent | 4e794b5ed03e5020770becb068d11e6838feec64 (diff) | |
download | container-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/test/resources')
-rw-r--r-- | container-compiler-plugin/src/test/resources/Person.java | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/container-compiler-plugin/src/test/resources/Person.java b/container-compiler-plugin/src/test/resources/Person.java index 740b42d..4bdb882 100644 --- a/container-compiler-plugin/src/test/resources/Person.java +++ b/container-compiler-plugin/src/test/resources/Person.java @@ -1,26 +1,25 @@ +import io.trygvis.persistence.SqlEntity; + import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import java.util.ArrayList; import java.util.Date; -import java.util.List; @Entity +@SqlEntity("io.trygvis.persistence.test.PersonTypeHandler") public class Person { @Id - private Long id; + public Long id; - private Date birthDate; + public Date birthDate; @ManyToOne - private Person mother; + public Person mother; - @ManyToOne - private Person father; +// @ManyToOne +// public Person father; - @OneToMany(mappedBy = "id") - @OrderBy("birthDate asc") - private List<Person> children = new ArrayList<>(); +// @OneToMany(mappedBy = "id") +// @OrderBy("birthDate asc") +// private List<Person> children = new ArrayList<>(); } |