1 | public class Stock {↵ | | 1 | public class Thing {↵
|
2 | private Long id;↵ | | 2 | private Employee salesperson;↵
|
3 | private String tradeSymbol;↵ | | 3 | private String ↵
|
4 | private Valuation currentValuation;↵ | | |
|
5 | private Set valuations = new HashSet();↵ | | |
|
|
6 | public Long getId() {↵ | | |
|
7 | return id;↵ | | |
|
8 | }↵ | | |
|
|
9 | public void setId(Long id) {↵ | | |
|
10 | this.id = id;↵ | | |
|
11 | }↵ | | |
|
| | | 4 | comments;↵
|
|
| | | 5 | /**↵
|
| | | 6 | * @return Returns the salesperson.↵
|
| | | 7 | */↵
|
| | | 8 | public Employee getSalesperson() {↵
|
| | | 9 | return salesperson;↵
|
| | | 10 | }↵
|
| | | 11 | /**↵
|
| | | 12 | * @param salesperson The salesperson to set.↵
|
| | | 13 | */↵
|
| | | 14 | public void setSalesperson(Employee salesperson) {↵
|
| | | 15 | this.salesperson = salesperson;↵
|
| | | 16 | }↵
|
| | | 17 | /**↵
|
| | | 18 | * @return Returns the comments.↵
|
| | | 19 | */↵
|
12 | public String getTradeSymbol() {↵ | | 20 | public String getComments() {↵
|
13 | return tradeSymbol;↵ | | 21 | return ↵
|
14 | }↵ | | |
|
| | | 22 | comments;↵
|
| | | 23 | }↵
|
| | | 24 | /**↵
|
| | | 25 | * @param comments The comments to set.↵
|
| | | 26 | */↵
|
15 | public void setTradeSymbol(String tradeSymbol) {↵ | | 27 | public void set↵
|
16 | this.tradeSymbol = tradeSymbol;↵ | | |
|
17 | }↵ | | |
|
|
18 | public Valuation g↵ | | 28 | Comments(String comments) {↵
|
| | | 29 | this.comments = comments;↵
|
| | | 30 | }↵
|
|
| | | 31 | Long id;↵
|
| | | 32 | String name;↵
|
|
| | | 33 | /**↵
|
19 | etCurrentValuation() {↵ | | 34 | * @retur↵
|
20 | return currentValuation;↵ | | |
|
21 | }↵ | | |
|
|
22 | public void setCurrentValuation(Valuation currentValuation) {↵ | | |
|
23 | this.currentValuation = currentValuation;↵ | | |
|
24 | }↵ | | |
|
| | | 35 | n Returns the ID.↵
|
| | | 36 | */↵
|
| | | 37 | public Long getId() {↵
|
| | | 38 | return id;↵
|
| | | 39 | }↵
|
| | | 40 | /**↵
|
| | | 41 | * @param id The ID to set.↵
|
| | | 42 | */↵
|
| | | 43 | public void setId(Long id) {↵
|
| | | 44 | this.id = id;↵
|
| | | 45 | }↵
|
| | | 46 | /**↵
|
| | | 47 | * @return Returns the name.↵
|
| | | 48 | */↵
|
25 | public Set getValuations() {↵ | | 49 | public S↵
|
26 | return valuations;↵ | | |
|
27 | }↵ | | |
|
| | | 50 | tring getName() {↵
|
| | | 51 | return name;↵
|
| | | 52 | }↵
|
| | | 53 | /**↵
|
| | | 54 | * @param name The name to set.↵
|
| | | 55 | */↵
|
28 | public void setValuations(Set valuations) {↵ | | 56 | public void setName(String name) {↵
|
29 | this.valuations = valuations;↵ | | 57 | this.name = name;↵
|
30 | | | 58 |
|