diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 20:09:06 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 20:09:06 +0200 |
commit | fd6f806608d1047296cbb1ae7ea4a989fe23553b (patch) | |
tree | be38c3b783ad656605bdf8808aa32a497d0ebd0f /container-compiler-plugin/src/test/resources | |
parent | f0a9ad191465bba0e7ddaea700d9667be699fec3 (diff) | |
download | container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.tar.gz container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.tar.bz2 container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.tar.xz container-playground-fd6f806608d1047296cbb1ae7ea4a989fe23553b.zip |
wip
o Adding support for enums. Will automatically use the name style, not ordinal.
Diffstat (limited to 'container-compiler-plugin/src/test/resources')
-rw-r--r-- | container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java | 9 |
1 files changed, 8 insertions, 1 deletions
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<Person> 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; } } |