1 | public class MyEntity {↵ | | 1 | public class ↵
|
2 | private Long id;
↵ | | 2 | User {↵
|
3 | private String name;
↵ | | 3 | private String name;↵
|
4 | private MySibling sibling;↵ | | 4 | private ↵
|
5 | private Set nonInverseChildren↵ | | 5 | String password;↵
|
6 | = new HashSet();
↵ | | 6 | private Set actions = new HashSet();↵
|
7 | private Set inverseChildren = new HashSet();↵ | | 7 | private ↵
|
|
8 | public MyEntity() {↵ | | |
|
9 | }↵ | | |
|
10 |
↵ | | 8 | Calendar lastUpdated;↵
|
| | | 9 | private Calendar created;↵
|
| | | 10 | ↵
|
11 | public MyEntity(String name) {↵ | | 11 | public User(String name↵
|
12 | this.name = name;↵ | | |
|
13 | }↵ | | |
|
|
14 | public Long getI↵ | | 12 | , String password) {↵
|
| | | 13 | super();↵
|
| | | 14 | this.name = name;↵
|
| | | 15 | this.password = password;↵
|
| | | 16 | }↵
|
| | | 17 | public User() {↵
|
| | | 18 | super();↵
|
| | | 19 | }↵
|
15 | d() {
↵ | | 20 | public Calendar getLastUpdated() {↵
|
16 | return id;
↵ | | 21 | return lastUpdated;↵
|
17 | }↵ | | 22 | }↵
|
18 |
↵ | | |
|
19 | public void setId(Long id) {
↵ | | 23 | public void setLastUpdated(Calendar lastUpdated) {↵
|
20 | this.id = id;
↵ | | 24 | this.lastUpdated = lastUpdated;↵
|
21 | }↵ | | 25 | }↵
|
22 |
↵ | | |
|
23 | public String getName() {
↵ | | 26 | public String getName() {↵
|
24 | return name;
↵ | | 27 | return name;↵
|
25 | }↵ | | 28 | }↵
|
26 |
↵ | | |
|
27 | public void setName(String name) {
↵ | | 29 | public void setName(String name) {↵
|
28 | this.name = name;
↵ | | 30 | this.name = name;↵
|
29 | }↵ | | 31 | }↵
|
30 |
↵ | | |
|
31 | public MySibling getSibling() {
↵ | | 32 | public String getPassword() {↵
|
32 | return sibling;↵ | | 33 | return ↵
|
33 | }↵ | | |
|
34 |
↵ | | 34 | password;↵
|
| | | 35 | }↵
|
35 | public void setSibling(MySibling sibling) {
↵ | | 36 | public void setPassword(String password) {↵
|
36 | this.sibling = sibling;↵ | | 37 | this.↵
|
37 | }↵ | | |
|
|
38 | public Set getNonInverseChildren↵ | | 38 | password = password;↵
|
| | | 39 | }↵
|
39 | () {
↵ | | 40 | public Set getActions() {↵
|
40 | return nonInverseChildren;↵ | | 41 | return ↵
|
41 | }↵ | | |
|
|
42 | public void setNonInverseChildren(Set nonInverseChildren↵ | | 42 | actions;↵
|
| | | 43 | }↵
|
43 | ) {
↵ | | 44 | public void setActions(Set actions) {↵
|
44 | this.nonInverseChildren = nonInverseChildren;↵ | | 45 | this.↵
|
45 | }↵ | | |
|
|
46 | public Set getInverseChildren↵ | | 46 | actions = actions;↵
|
| | | 47 | }↵
|
47 | () {
↵ | | 48 | public Calendar getCreated() {↵
|
48 | return inverseChildren;↵ | | 49 | return ↵
|
49 | }↵ | | |
|
|
50 | public void setInverseChildren(Set inverseChildren↵ | | 50 | created;↵
|
| | | 51 | }↵
|
51 | ) {
↵ | | 52 | public void setCreated(Calendar created) {↵
|
52 | this.inverseChildren = inverseChildren;
↵ | | 53 | this.created = created;↵
|
53 | | | 54 |
|