1 | public class Valuation {↵ | | 1 | public class Person {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private Stock stock;↵ | | |
|
4 | private Date valuationDate;↵ | | |
|
5 | private Double value;↵ | | |
|
|
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 Stock getStock() {↵ | | 14 | public Employee getEmployee() {↵
|
15 | return stock;↵ | | 15 | return employee;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void setStock(Stock stock) {↵ | | 17 | public void set↵
|
18 | this.stock = stock↵ | | 18 | Employee(Employee employee) {↵
|
19 | ;↵ | | 19 | this.employee = employee;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public Date getValuationDate() {↵ | | 21 | public String getName() {↵
|
22 | return valuationDate;↵ | | 22 | return name;↵
|
23 | }↵ | | 23 | }↵
|
|
24 | public void setValuationDate(Date valuationDate) {↵ | | 24 | public void set↵
|
25 | this.valuationDate = valuationDat↵ | | 25 | Name(String name) {↵
|
26 | e;↵ | | 26 | this.name = name;↵
|
27 | }↵ | | 27 | }↵
|
|
28 | public Double getValue() {↵ | | 28 | public Date getDob() {↵
|
29 | return value;↵ | | 29 | return dob;↵
|
30 | }↵ | | 30 | }↵
|
|
31 | public void setValue(Double value) {↵ | | 31 | public void set↵
|
32 | this.value = value | | 32 | Dob(Date dob) {↵
|
| | | 33 | this.dob = dob
|