1 | public class Car implements java.io.Serializable {↵ | | 1 | public class ↵
|
|
2 | ↵ | | 2 | Event {↵
|
3 | private long id;↵ | | 3 | private Long id;↵
|
4 | ↵ | | |
|
5 | private String model;↵ | | 4 | private String ↵
|
6 | ↵ | | 5 | title;↵
|
7 | private CarType carType;↵ | | 6 | private ↵
|
8 | private Set carParts = new HashSet();↵ | | |
|
9 | ↵ | | |
|
10 | /**↵ | | |
|
11 | * @return Returns the carType.↵ | | |
|
12 | */↵ | | |
|
13 | public CarType getCarType() {↵ | | |
|
14 | return carType;↵ | | |
|
15 | }↵ | | |
|
16 | /**↵ | | |
|
17 | * @param carType The carType to set.↵ | | |
|
18 | */↵ | | |
|
19 | public void setCarType(CarType carType) {↵ | | |
|
20 | this.carType = carType;↵ | | |
|
21 | }↵ | | |
|
22 | /**↵ | | |
|
23 | * @return Returns the id.↵ | | |
|
24 | */↵ | | |
|
25 | public long getId() {↵ | | |
|
26 | return id;↵ | | |
|
27 | }↵ | | |
|
28 | /**↵ | | |
|
29 | * @param id The id to set.↵ | | |
|
30 | */↵ | | |
|
31 | public void setId(long id) {↵ | | |
|
32 | ↵ | | 7 | Date date;↵
|
|
| | | 8 | public Event() {}↵
|
|
| | | 9 | public Long getId() {↵
|
| | | 10 | return id;↵
|
| | | 11 | }↵
|
|
| | | 12 | private void setId(Long id) {↵
|
| | | 13 | this.id = id;↵
|
| | | 14 | }↵
|
|
| | | 15 | public Date getDate() {↵
|
| | | 16 | return date;↵
|
| | | 17 | }↵
|
|
| | | 18 | public void setDate(Date date) {↵
|
33 | this.id = id;↵ | | 19 | this.↵
|
34 | }↵ | | |
|
35 | /**↵ | | |
|
36 | * @return Returns the model.↵ | | |
|
37 | */↵ | | |
|
38 | public String getModel() {↵ | | |
|
39 | return model;↵ | | |
|
40 | }↵ | | |
|
41 | /**↵ | | |
|
42 | * @param model The model to set.↵ | | |
|
43 | */↵ | | |
|
44 | ↵ | | 20 | date = date;↵
|
| | | 21 | }↵
|
|
| | | 22 | public String getTitle() {↵
|
| | | 23 | return title;↵
|
| | | 24 | }↵
|
|
45 | public void setModel(String model) {↵ | | 25 | public void setTitle(String ↵
|
46 | this.model = model;↵ | | |
|
47 | }↵ | | |
|
48 | ↵ | | 26 | title) {↵
|
| | | 27 | this.title = title;↵
|
| | | 28 | }↵
|
| | | 29 | ↵
|
|
| | | 30 | private Set participants = new HashSet();↵
|
|
49 | public Set getCarParts() {↵ | | 31 | public Set getPart↵
|
50 | ↵ | | 32 | icipants() {↵
|
51 | return carParts;↵ | | 33 | return par↵
|
52 | }↵ | | |
|
53 | ↵ | | 34 | ticipants;↵
|
| | | 35 | }↵
|
|
54 | public void setCarParts(Set carParts) {↵ | | 36 | public void setParticipants(Set par↵
|
55 | ↵ | | 37 | ticipants) {↵
|
56 | this.carParts = carParts | | 38 | this.participants = participants
|