1 | public class Stock {↵ | | 1 | public class Customer implements Serializable {↵
|
|
2 | private Long id;↵ | | 2 | private String name;↵
|
3 | private String tradeSymbol;↵ | | 3 | private String ↵
|
4 | private Valuation currentValuation;↵ | | |
|
5 | private Set valuations = new HashSet();↵ | | |
|
|
6 | public Long getId() {↵ | | |
|
7 | return id↵ | | 4 | customerId;↵
|
| | | 5 | private Address billingAddress;↵
|
| | | 6 | private Address shippingAddress;↵
|
|
| | | 7 | public Address getBillingAddress() {↵
|
8 | ;↵ | | 8 | return billingAddress;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void setId(Long id) {↵ | | 10 | public void set↵
|
11 | this.id = id↵ | | 11 | BillingAddress(Address billingAddress) {↵
|
12 | ;↵ | | 12 | this.billingAddress = billingAddress;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public String getTradeSymbol() {↵ | | 14 | public String getCustomerId() {↵
|
15 | return tradeSymbol;↵ | | 15 | return customerId;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void setTradeSymbol(String tradeSymbol) {↵ | | 17 | public void set↵
|
18 | this.tradeSymbol = tradeSymbol↵ | | 18 | CustomerId(String customerId) {↵
|
19 | ;↵ | | 19 | this.customerId = customerId;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public Valuation getCurrentValuation() {↵ | | 21 | public ↵
|
22 | return currentValuation↵ | | 22 | String getName() {↵
|
23 | ;↵ | | 23 | return name;↵
|
24 | }↵ | | 24 | }↵
|
|
25 | public void setCurrentValuation(Valuation currentValuation) {↵ | | 25 | public void set↵
|
26 | this.currentValuation = currentValuation↵ | | 26 | Name(String name) {↵
|
27 | ;↵ | | 27 | this.name = name;↵
|
28 | }↵ | | 28 | }↵
|
|
29 | public Set getValuations() {↵ | | 29 | public Address getShippingAddress() {↵
|
30 | return valuations;↵ | | 30 | return shippingAddress;↵
|
31 | }↵ | | 31 | }↵
|
|
32 | public void setValuations(Set valuations) {↵ | | 32 | public void set↵
|
33 | this.valuations = valuation↵ | | 33 | ShippingAddress(Address shippingAddress) {↵
|
34 | s;↵ | | 34 | this.shippingAddress = shippingAddress;↵
|
35 | | | 35 |
|