1 | public class Suite {
↵ | | 1 | public class OneToOneNoProxy {↵
|
2 | private Long id;
↵ | | 2 | private Long entityId;↵
|
3 | private String location;↵ | | 3 | private String ↵
|
4 | private Set notes = new HashSet();↵ | | |
|
|
5 | public Suite() {↵ | | |
|
6 | }↵ | | |
|
|
7 | public Suite(String location↵ | | 4 | name;↵
|
| | | 5 | private EntityWithOneToOnes entity;↵
|
|
| | | 6 | public OneToOneNoProxy() {}↵
|
8 | ) {
↵ | | 7 | public OneToOneNoProxy(String name) {↵
|
9 | this.location = location;↵ | | 8 | this.↵
|
10 | }↵ | | |
|
11 |
↵ | | 9 | name = name;↵
|
| | | 10 | }↵
|
| | | 11 | /**↵
|
| | | 12 | * @return Returns the id.↵
|
| | | 13 | */↵
|
12 | public Long getId() {
↵ | | 14 | public Long getEntityId() {↵
|
13 | return id;
↵ | | 15 | return entityId;↵
|
14 | }↵ | | 16 | }↵
|
15 |
↵ | | |
|
| | | 17 | /**↵
|
| | | 18 | * @param entityId The id to set.↵
|
| | | 19 | */↵
|
16 | public void setId(Long id) {
↵ | | 20 | public void setEntityId(Long entityId) {↵
|
17 | this.id = id;
↵ | | 21 | this.entityId = entityId;↵
|
18 | }↵ | | 22 | }↵
|
19 |
↵ | | |
|
| | | 23 | /**↵
|
| | | 24 | * @return Returns the name.↵
|
| | | 25 | */↵
|
20 | public String getLocation() {
↵ | | 26 | public String getName() {↵
|
21 | return location;↵ | | 27 | return ↵
|
22 | }↵ | | |
|
23 |
↵ | | 28 | name;↵
|
| | | 29 | }↵
|
| | | 30 | /**↵
|
| | | 31 | * @param name The name to set.↵
|
| | | 32 | */↵
|
24 | public void setLocation(String location) {
↵ | | 33 | public void setName(String name) {↵
|
25 | this.location = location;↵ | | 34 | this.↵
|
26 | }↵ | | |
|
|
27 | public Set getNotes↵ | | 35 | name = name;↵
|
| | | 36 | }↵
|
28 | () {
↵ | | 37 | public EntityWithOneToOnes getEntity() {↵
|
29 | return notes;↵ | | 38 | return ↵
|
30 | }↵ | | |
|
31 |
↵ | | 39 | entity;↵
|
| | | 40 | }↵
|
32 | public void setNotes(Set notes) {
↵ | | 41 | public void setEntity(EntityWithOneToOnes entity) {↵
|
33 | this.notes = notes | | 42 | this.entity = entity
|