summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-04 20:09:06 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-04 20:09:06 +0200
commitfd6f806608d1047296cbb1ae7ea4a989fe23553b (patch)
treebe38c3b783ad656605bdf8808aa32a497d0ebd0f /container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java
parentf0a9ad191465bba0e7ddaea700d9667be699fec3 (diff)
downloadcontainer-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/io/trygvis/persistence/test/Person.java')
-rw-r--r--container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/Person.java9
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;
}
}