1 | public class Contact implements Serializable↵ | | 1 | public class ↵
|
2 | {↵ | | |
|
3 | /** The serialVersionUID */↵ | | |
|
4 | private static final long serialVersionUID = 1L;↵ | | |
|
5 | ↵ | | |
|
6 | Integer id;↵ | | |
|
7 | String name;↵ | | |
|
8 | String tlf;↵ | | |
|
9 | Customer customer;↵ | | |
|
10 | ↵ | | |
|
11 | public Contact()↵ | | |
|
12 | {↵ | | |
|
13 | ↵ | | |
|
14 | }↵ | | |
|
15 | ↵ | | |
|
16 | public Integer↵ | | 2 | Stock {↵
|
| | | 3 | private Long id;↵
|
| | | 4 | private String tradeSymbol;↵
|
| | | 5 | private Valuation currentValuation;↵
|
| | | 6 | private Set valuations = new HashSet();↵
|
|
17 | getId()↵ | | 7 | public Long getId()↵
|
18 | {↵ | | |
|
19 | return id;↵ | | |
|
20 | }↵ | | |
|
|
21 | ↵ | | 8 | {↵
|
| | | 9 | return id;↵
|
| | | 10 | }↵
|
|
22 | public void setId(Integer id)↵ | | 11 | public void setId(↵
|
23 | {↵ | | |
|
24 | this.id = id;↵ | | |
|
25 | }↵ | | |
|
|
26 | ↵ | | 12 | Long id) {↵
|
| | | 13 | this.id = id;↵
|
| | | 14 | }↵
|
|
27 | public String getName()↵ | | 15 | public String get↵
|
28 | {↵ | | |
|
29 | return name;↵ | | |
|
30 | }↵ | | |
|
31 | ↵ | | |
|
32 | ↵ | | 16 | TradeSymbol() {↵
|
| | | 17 | return tradeSymbol;↵
|
| | | 18 | }↵
|
|
33 | public void setName(String name)↵ | | 19 | public void set↵
|
34 | {↵ | | |
|
35 | this.name = name;↵ | | |
|
36 | }↵ | | |
|
37 | ↵ | | |
|
38 | public String getTlf()↵ | | |
|
39 | {↵ | | |
|
40 | return tlf;↵ | | |
|
41 | }↵ | | |
|
42 | ↵ | | |
|
43 | public void setTlf(String tlf)↵ | | |
|
44 | {↵ | | |
|
45 | this.tlf = tlf;↵ | | |
|
46 | }↵ | | |
|
47 | ↵ | | |
|
48 | public Customer getCustomer()↵ | | |
|
49 | {↵ | | |
|
50 | return customer;↵ | | |
|
51 | }↵ | | |
|
52 | ↵ | | |
|
53 | public void setCustomer(Customer customer)↵ | | |
|
54 | {↵ | | |
|
55 | this.customer = customer;↵ | | |
|
56 | | | 20 | TradeSymbol(String tradeSymbol) {↵
|
| | | 21 | this.tradeSymbol = tradeSymbol;↵
|
| | | 22 | }↵
|
|
| | | 23 | public Valuation getCurrentValuation() {↵
|
| | | 24 | return currentValuation;↵
|
| | | 25 | }↵
|
|
| | | 26 | public void setCurrentValuation(Valuation currentValuation) {↵
|
| | | 27 | this.currentValuation = currentValuation;↵
|
| | | 28 | }↵
|
|
| | | 29 | public Set getValuations() {↵
|
| | | 30 | return valuations;↵
|
| | | 31 | }↵
|
|
| | | 32 | public void setValuations(Set valuations) {↵
|
| | | 33 | this.valuations = valuations;↵
|
| | | 34 |
|