1 | public class Address {↵ | | 1 | public class Suite {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String info;↵ | | 3 | private String location;↵
|
4 | private Set suites = new HashSet();↵ | | 4 | private Set notes = new HashSet();↵
|
|
5 | public Address() {↵ | | 5 | public Suite() {↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public Address(String info) {↵ | | 7 | public Suite(String location) {↵
|
8 | this.info = info;↵ | | 8 | this.location = location;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public Long getId() {↵ | | 10 | public Long getId() {↵
|
11 | return id;↵ | | 11 | return id;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void setId(Long id) {↵ | | 13 | public void setId(Long id) {↵
|
14 | this.id = id;↵ | | 14 | this.id = id;↵
|
15 | }↵ | | 15 | }↵
|
|
16 | public String getInfo() {↵ | | 16 | public String getLocation() {↵
|
17 | return info;↵ | | 17 | return location;↵
|
18 | }↵ | | 18 | }↵
|
|
19 | public void setInfo(String info) {↵ | | 19 | public void set↵
|
20 | this.info = info↵ | | 20 | Location(String location) {↵
|
21 | ;↵ | | 21 | this.location = location;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | public Set getSuites() {↵ | | 23 | public Set getNotes() {↵
|
24 | return suites;↵ | | 24 | return notes;↵
|
25 | }↵ | | 25 | }↵
|
|
26 | public void setSuites(Set suites) {↵ | | 26 | public void setNotes(Set notes) {↵
|
27 | this.suites = suites | | 27 | this.notes = notes
|