1 | public class Stock {↵ | | 1 | public class Person {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String tradeSymbol;↵ | | |
|
4 | private Valuation currentValuation;↵ | | |
|
5 | private Set valuations = new HashSet();↵ | | |
|
|
6 | public Long getId↵ | | 3 | String name;↵
|
| | | 4 | private Date dob;↵
|
| | | 5 | private Employee employee;↵
|
| | | 6 | private Customer customer;↵
|
7 | () {↵ | | 7 | public Customer getCustomer() {↵
|
8 | return id;↵ | | 8 | return customer;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void setId(Long id) {↵ | | 10 | public void set↵
|
11 | this.id = id↵ | | 11 | Customer(Customer customer) {↵
|
12 | ;↵ | | 12 | this.customer = customer;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public String getTradeSymbol() {↵ | | 14 | public Employee getEmployee() {↵
|
15 | return tradeSymbol;↵ | | 15 | return employee;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void setTradeSymbol(String tradeSymbol) {↵ | | 17 | public void set↵
|
18 | this.tradeSymbol = tradeSymbol↵ | | 18 | Employee(Employee employee) {↵
|
19 | ;↵ | | 19 | this.employee = employee;↵
|
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 Date getDob() {↵
|
30 | return valuations;↵ | | 30 | return dob;↵
|
31 | }↵ | | 31 | }↵
|
|
32 | public void setValuations(Set valuations) {↵ | | 32 | public void set↵
|
33 | this.valuations = valuations | | 33 | Dob(Date dob) {↵
|
| | | 34 | this.dob = dob
|