1 | public class AddressImpl implements Address {↵ | | 1 | public class ServerImpl implements Server {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String addressType;↵ | | 3 | private String serverType;↵
|
4 | private Server server;↵ | | 4 | private Address address;↵
|
|
5 | public Long getId() {↵ | | 5 | public Long getId() {↵
|
6 | return id;↵ | | 6 | return id;↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void setId(Long id) {↵ | | 8 | public void setId(Long id) {↵
|
9 | this.id = id;↵ | | 9 | this.id = id;↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public String getAddressType() {↵ | | 11 | public String getServerType() {↵
|
12 | return addressType;↵ | | 12 | return serverType;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setAddressType(String addressType) {↵ | | 14 | public void setServerType(String serverType) {↵
|
15 | this.addressType = addressType;↵ | | 15 | this.serverType = serverType;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public Server getServer() {↵ | | 17 | public Address getAddress() {↵
|
18 | return server;↵ | | 18 | return address;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void setServer(Server server) {↵ | | 20 | public void set↵
|
21 | this.server = server | | 21 | Address(Address address) {↵
|
| | | 22 | this.address = address
|