From b5d6f23d8ac3d4bedb139fdaecc2e9dc621f385a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 3 Aug 2013 15:06:46 +0200 Subject: wip --- .../resources/io/trygvis/persistence/test/Car.java | 8 +++++++ .../io/trygvis/persistence/test/Person.java | 27 ++++++++++++++++++++++ .../io/trygvis/persistence/test/package-info.java | 3 +++ 3 files changed, 38 insertions(+) create mode 100644 container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Car.java create mode 100644 container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java create mode 100644 container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/package-info.java (limited to 'container-compiler-plugin/src/test/resources/io') 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 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; -- cgit v1.2.3