1 | public class Circular {↵ | | 1 | public class Customer implements Serializable {↵
|
2 | ↵ | | |
|
3 | private String id;↵ | | 2 | private String name;↵
|
4 | private Class clazz;↵ | | 3 | private ↵
|
5 | private Circular other;↵ | | |
|
6 | private Object anyEntity;↵ | | |
|
7 | ↵ | | |
|
8 | /**↵ | | |
|
9 | * Constructor for Circular.↵ | | |
|
10 | */↵ | | |
|
11 | public Circular() {↵ | | |
|
12 | super();↵ | | |
|
13 | }↵ | | |
|
14 | ↵ | | |
|
15 | /**↵ | | |
|
16 | * Returns the clazz.↵ | | |
|
17 | * @return Class↵ | | |
|
18 | */↵ | | 4 | String customerId;↵
|
| | | 5 | private Address billingAddress;↵
|
| | | 6 | private Address shippingAddress;↵
|
|
19 | public Class getClazz() {↵ | | 7 | public Address get↵
|
20 | return clazz;↵ | | |
|
21 | }↵ | | |
|
22 | ↵ | | |
|
23 | /**↵ | | |
|
24 | * Returns the id.↵ | | |
|
25 | * @return String↵ | | |
|
26 | */↵ | | |
|
27 | public String getId() {↵ | | |
|
28 | return id;↵ | | |
|
29 | }↵ | | |
|
30 | ↵ | | |
|
31 | /**↵ | | |
|
32 | * Sets the clazz.↵ | | |
|
33 | * @param clazz The clazz to set↵ | | |
|
34 | */↵ | | |
|
35 | public void setClazz(Class clazz) {↵ | | |
|
36 | this.clazz = clazz;↵ | | |
|
37 | }↵ | | |
|
38 | ↵ | | |
|
39 | /**↵ | | |
|
40 | * Sets the id.↵ | | |
|
41 | * @param id The id to set↵ | | |
|
42 | */↵ | | 8 | BillingAddress() {↵
|
| | | 9 | return billingAddress;↵
|
| | | 10 | }↵
|
| | | 11 | public void setBillingAddress(Address billingAddress) {↵
|
| | | 12 | this.billingAddress = billingAddress;↵
|
| | | 13 | }↵
|
| | | 14 | public String getCustomerId() {↵
|
| | | 15 | return customerId;↵
|
| | | 16 | }↵
|
43 | public void setId(String id) {↵ | | 17 | public void setCustomerId(String customerId) {↵
|
44 | this.id = id;↵ | | 18 | this.↵
|
45 | }↵ | | |
|
46 | ↵ | | |
|
47 | /**↵ | | |
|
48 | * Returns the other.↵ | | |
|
49 | * @return Circular↵ | | |
|
50 | */↵ | | 19 | customerId = customerId;↵
|
| | | 20 | }↵
|
51 | public Circular getOther() {↵ | | 21 | public String getName() {↵
|
52 | return other;↵ | | 22 | return name;↵
|
53 | }↵ | | 23 | }↵
|
54 | ↵ | | 24 | ↵
|
55 | /**↵ | | |
|
56 | * Sets the other.↵ | | |
|
57 | * @param other The other to set↵ | | |
|
58 | */↵ | | |
|
59 | public void setOther(Circular other) {↵ | | |
|
60 | this.other = other;↵ | | |
|
61 | }↵ | | |
|
62 | ↵ | | |
|
63 | /**↵ | | |
|
64 | * Returns the anyEntity.↵ | | |
|
65 | * @return Object↵ | | |
|
66 | */↵ | | |
|
67 | public Object getAnyEntity() {↵ | | |
|
68 | return anyEntity;↵ | | |
|
69 | }↵ | | |
|
70 | ↵ | | |
|
71 | /**↵ | | |
|
72 | * Sets the anyEntity.↵ | | |
|
73 | * @param anyEntity The anyEntity to set↵ | | |
|
74 | */↵ | | |
|
75 | public void setAnyEntity(Object anyEntity) {↵ | | |
|
76 | this.anyEntity = anyEntity | | 25 | public void setName(String name) {↵
|
| | | 26 | this.name = name;↵
|
| | | 27 | }↵
|
| | | 28 | public Address getShippingAddress() {↵
|
| | | 29 | return shippingAddress;↵
|
| | | 30 | }↵
|
| | | 31 | public void setShippingAddress(Address shippingAddress) {↵
|
| | | 32 | this.shippingAddress = shippingAddress
|