diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-03 15:06:46 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-03 15:06:46 +0200 |
commit | b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a (patch) | |
tree | ede2d0de570efcbb546fabcb2d5d050511792ae1 /container-compiler-plugin/src/test/resources/io | |
parent | 34137b599dbea13c94224dff2955376b1394dbc9 (diff) | |
download | container-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.tar.gz container-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.tar.bz2 container-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.tar.xz container-playground-b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a.zip |
wip
Diffstat (limited to 'container-compiler-plugin/src/test/resources/io')
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; |