diff options
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<>(); } |