1 | public class MyEntity {
↵ | | 1 | public class Container implements Serializable {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String name;
↵ | | 3 | private String name;↵
|
4 | private MySibling sibling;↵ | | 4 | private ↵
|
5 | private Set nonInverseChildren = new HashSet();↵ | | |
|
6 | private Set inverseChildren↵ | | 5 | Owner owner;↵
|
| | | 6 | private Info info;↵
|
7 | = new HashSet();↵ | | 7 | private Set dataPoints = new HashSet();↵
|
8 |
↵ | | |
|
|
9 | public MyEntity() {
↵ | | 8 | public Container() {↵
|
10 | }↵ | | 9 | }↵
|
11 |
↵ | | |
|
|
12 | public MyEntity(String name) {
↵ | | 10 | public Container(String name) {↵
|
13 | this.name = name;
↵ | | 11 | this.name = name;↵
|
14 | }↵ | | 12 | }↵
|
15 |
↵ | | |
|
|
16 | public Long getId() {
↵ | | 13 | public Long getId() {↵
|
17 | return id;
↵ | | 14 | return id;↵
|
18 | }↵ | | 15 | }↵
|
19 |
↵ | | |
|
|
20 | public void setId(Long id) {
↵ | | 16 | public void setId(Long id) {↵
|
21 | this.id = id;
↵ | | 17 | this.id = id;↵
|
22 | }↵ | | 18 | }↵
|
23 |
↵ | | |
|
|
24 | public String getName() {
↵ | | 19 | public String getName() {↵
|
25 | return name;
↵ | | 20 | return name;↵
|
26 | }↵ | | 21 | }↵
|
27 |
↵ | | |
|
|
28 | public void setName(String name) {
↵ | | 22 | public void setName(String name) {↵
|
29 | this.name = name;
↵ | | 23 | this.name = name;↵
|
30 | }↵ | | 24 | }↵
|
31 |
↵ | | |
|
|
32 | public MySibling getSibling() {
↵ | | 25 | public Owner getOwner() {↵
|
33 | return sibling;↵ | | 26 | return ↵
|
34 | }↵ | | |
|
35 |
↵ | | 27 | owner;↵
|
| | | 28 | }↵
|
|
36 | public void setSibling(MySibling sibling) {
↵ | | 29 | public void setOwner(Owner owner) {↵
|
37 | this.sibling = sibling;↵ | | 30 | this.↵
|
38 | }↵ | | |
|
39 |
↵ | | 31 | owner = owner;↵
|
| | | 32 | }↵
|
|
40 | public Set getNonInverseChildren() {
↵ | | 33 | public Info getInfo() {↵
|
41 | return nonInverseChildren;↵ | | 34 | return ↵
|
42 | }↵ | | |
|
|
43 | public void setNonInverseChildren(Set nonInverseChildren↵ | | 35 | info;↵
|
| | | 36 | }↵
|
|
44 | ) {
↵ | | 37 | public void setInfo(Info info) {↵
|
45 | this.nonInverseChildren = nonInverseChildren;↵ | | 38 | this.↵
|
46 | }↵ | | |
|
47 |
↵ | | 39 | info = info;↵
|
| | | 40 | }↵
|
|
48 | public Set getInverseChildren() {
↵ | | 41 | public Set getDataPoints() {↵
|
49 | return inverseChildren;↵ | | 42 | return ↵
|
50 | }↵ | | |
|
|
51 | public void setInverseChildren(Set inverseChildren↵ | | 43 | dataPoints;↵
|
| | | 44 | }↵
|
|
52 | ) {
↵ | | 45 | public void setDataPoints(Set dataPoints) {↵
|
53 | this.inverseChildren = inverseChildren;
↵ | | 46 | this.dataPoints = dataPoints;↵
|
54 | | | 47 |
|