1 | public class Stock {↵ | | 1 | public class Valuation {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String tradeSymbol;↵ | | 3 | private St↵
|
4 | private Valuation currentV↵ | | 4 | ock stock;↵
|
5 | aluation;↵ | | 5 | private Date valuationDate;↵
|
6 | private Set valuations = new HashSet();↵ | | 6 | private Double value;↵
|
|
7 | public Long getId() {↵ | | 7 | public Long getId() {↵
|
8 | return id;↵ | | 8 | return id;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void setId(Long id) {↵ | | 10 | public void setId(Long id) {↵
|
11 | this.id = id;↵ | | 11 | this.id = id;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public String getTradeSymbol() {↵ | | 13 | public Stock getStock() {↵
|
14 | return tradeSymbol;↵ | | 14 | return stock;↵
|
15 | }↵ | | 15 | }↵
|
|
16 | public void setTradeSymbol(String tradeSymbol) {↵ | | 16 | public void set↵
|
17 | this.tradeSymbol = tradeSymbol;↵ | | |
|
18 | }↵ | | |
|
|
19 | public Valuation getCurren↵ | | 17 | Stock(Stock stock) {↵
|
| | | 18 | this.stock = stock;↵
|
| | | 19 | }↵
|
|
20 | tValuation() {↵ | | 20 | public Date getValuationDate() {↵
|
21 | return currentValuation;↵ | | 21 | return valuationDate;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | public void setCurrentValuation(Valuation currentValuation) {↵ | | 23 | public void setValuationDate(Date valuationDate) {↵
|
24 | this.currentValuation = currentValuation;↵ | | 24 | this.valuationDate = valuationDate;↵
|
25 | }↵ | | 25 | }↵
|
|
26 | public Set getValuations() {↵ | | 26 | public Double getValue() {↵
|
27 | return valuations;↵ | | 27 | return value;↵
|
28 | }↵ | | 28 | }↵
|
|
29 | public void setValuations(Set valuations) {↵ | | 29 | public void setValue(Double value) {↵
|
30 | this.valuations = valuations | | 30 | this.value = value
|