From fd6f806608d1047296cbb1ae7ea4a989fe23553b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 4 Aug 2013 20:09:06 +0200 Subject: wip o Adding support for enums. Will automatically use the name style, not ordinal. --- .../src/test/resources/io/trygvis/persistence/test/Person.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'container-compiler-plugin/src/test/resources') 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 index 755042b..47a2fdd 100644 --- 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 @@ -17,6 +17,12 @@ public class Person { @ManyToOne public Person mother; + enum Gender { + MALE, FEMALE + } + + public final Gender gender; + // @ManyToOne // public Person father; @@ -24,9 +30,10 @@ public class Person { // @OrderBy("birthDate asc") // private List children = new ArrayList<>(); - public Person(Long id, Date birthDate, Person mother) { + public Person(Long id, Date birthDate, Person mother, Gender gender) { this.id = id; this.birthDate = birthDate; this.mother = mother; + this.gender = gender; } } -- cgit v1.2.3