diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 17:17:39 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 17:17:39 +0200 |
commit | 381c368b8907640bdd7cd81db2294724e082a119 (patch) | |
tree | ee35a0ec90200e0b344aa36f2cabe13153331bed /container-compiler-plugin/src/test/resources/io/trygvis/persistence | |
parent | 3d556bfcad3eb3face9db986aa570d6e2a059448 (diff) | |
download | container-playground-381c368b8907640bdd7cd81db2294724e082a119.tar.gz container-playground-381c368b8907640bdd7cd81db2294724e082a119.tar.bz2 container-playground-381c368b8907640bdd7cd81db2294724e082a119.tar.xz container-playground-381c368b8907640bdd7cd81db2294724e082a119.zip |
wip
Diffstat (limited to 'container-compiler-plugin/src/test/resources/io/trygvis/persistence')
2 files changed, 35 insertions, 0 deletions
diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java new file mode 100644 index 0000000..d886fca --- /dev/null +++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java @@ -0,0 +1,13 @@ +package io.trygvis.persistence.test; + +import javax.persistence.Entity; + +@Entity +public class ChildEntity extends ParentEntity { + public final String name; + + public ChildEntity(Long id, String name) { + super(id); + this.name = name; + } +} diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ParentEntity.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ParentEntity.java new file mode 100644 index 0000000..4695739 --- /dev/null +++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ParentEntity.java @@ -0,0 +1,22 @@ +package io.trygvis.persistence.test; + +import javax.persistence.Id; + +public class ParentEntity { + @Id + public final Long id; + + public ParentEntity(Long id) { + this.id = id; + } + + private Integer age; + + public Integer getAge() { + return age; + } + + public void setAge(Integer age) { + this.age = age; + } +} |