1 | public class Car implements java.io.Serializable {↵ | | 1 | public class Stock {↵
|
|
2 | private long id;↵ | | 2 | private Long id;↵
|
3 | private String model;↵ | | 3 | private String tradeSymbol;↵
|
4 | private CarType carType;↵ | | 4 | private Valuation currentValuation;↵
|
5 | private Set carParts = new HashSet();↵ | | 5 | private Set valuations = new HashSet();↵
|
6 | ↵ | | |
|
7 | /**↵ | | |
|
8 | * @return Returns the carType.↵ | | |
|
9 | */↵ | | |
|
10 | public CarType getCarType() {↵ | | |
|
11 | return carType;↵ | | |
|
12 | }↵ | | |
|
13 | /**↵ | | |
|
14 | * @param carType The carType to set.↵ | | |
|
15 | */↵ | | |
|
16 | public void setCarType(CarType carType) {↵ | | |
|
17 | this.carType = carType;↵ | | |
|
18 | }↵ | | |
|
19 | /**↵ | | |
|
20 | * @return Returns the id.↵ | | |
|
21 | */↵ | | |
|
| | | 6 | public Long getId() {↵
|
| | | 7 | return id;↵
|
| | | 8 | }↵
|
|
| | | 9 | public void setId(Long id) {↵
|
| | | 10 | this.id = id;↵
|
| | | 11 | }↵
|
|
22 | public long getId() {↵ | | 12 | public String getTradeSymbol() {↵
|
23 | return id;↵ | | 13 | return ↵
|
24 | }↵ | | |
|
25 | /**↵ | | |
|
26 | * @param id The id to set.↵ | | |
|
27 | */↵ | | |
|
28 | public void setId(long id) {↵ | | |
|
29 | this.id = id;↵ | | |
|
30 | }↵ | | |
|
31 | /**↵ | | |
|
32 | * @return Returns the model.↵ | | |
|
33 | */↵ | | |
|
34 | public String getModel() {↵ | | |
|
35 | return model;↵ | | |
|
36 | }↵ | | |
|
37 | /**↵ | | |
|
38 | * @param model The model to set.↵ | | |
|
39 | */↵ | | |
|
40 | public void setModel(String model) {↵ | | |
|
41 | this.model = model↵ | | 14 | tradeSymbol;↵
|
| | | 15 | }↵
|
|
| | | 16 | public void setTradeSymbol(String tradeSymbol) {↵
|
| | | 17 | this.tradeSymbol = tradeSymbol;↵
|
| | | 18 | }↵
|
|
| | | 19 | public Valuation getCurrentValuation() {↵
|
| | | 20 | return currentValuation;↵
|
| | | 21 | }↵
|
|
| | | 22 | public void setCurrentValuation(Valuation currentValuation) {↵
|
42 | ;↵ | | 23 | this.currentValuation = currentValuation;↵
|
43 | }↵ | | 24 | }↵
|
|
44 | public Set getCarParts() {↵ | | 25 | public Set getValuations() {↵
|
45 | return carParts;↵ | | 26 | return valuations;↵
|
46 | }↵ | | 27 | }↵
|
|
47 | public void setCarParts(Set carParts) {↵ | | 28 | public void setValuations(Set valuations) {↵
|
48 | this.carParts = carParts | | 29 | this.valuations = valuations
|