1 | public class Several implements Serializable {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Event {↵
|
3 | private String id;↵ | | 3 | private Long id;↵
|
4 | ↵ | | |
|
5 | private String prop;↵ | | 4 | private String ↵
|
6 | private Single single;↵ | | |
|
7 | private String string;↵ | | |
|
8 | /**↵ | | |
|
9 | * Returns the id.↵ | | |
|
10 | * @return String↵ | | |
|
11 | */↵ | | |
|
12 | ↵ | | 5 | title;↵
|
| | | 6 | private Date date;↵
|
|
| | | 7 | public Event() {}↵
|
|
13 | public String getId() {↵ | | 8 | public Long getId() {↵
|
14 | return id;↵ | | 9 | return id;↵
|
15 | }↵ | | |
|
16 | ↵ | | |
|
17 | /**↵ | | |
|
18 | * Returns the prop.↵ | | |
|
19 | * @return String↵ | | |
|
20 | */↵ | | |
|
21 | public String getProp() {↵ | | |
|
22 | return prop;↵ | | |
|
23 | }↵ | | |
|
24 | ↵ | | |
|
25 | /**↵ | | |
|
26 | * Returns the single.↵ | | |
|
27 | * @return Single↵ | | |
|
28 | */↵ | | |
|
29 | public Single getSingle() {↵ | | |
|
30 | return single;↵ | | |
|
31 | }↵ | | |
|
32 | ↵ | | |
|
33 | /**↵ | | |
|
34 | * Sets the id.↵ | | |
|
35 | * @param id The id to set↵ | | |
|
36 | */↵ | | |
|
37 | public void setId(String id) {↵ | | |
|
38 | ↵ | | 10 | }↵
|
|
| | | 11 | private void setId(Long id) {↵
|
| | | 12 | this.id = id;↵
|
| | | 13 | }↵
|
|
| | | 14 | public Date getDate() {↵
|
| | | 15 | return date;↵
|
| | | 16 | }↵
|
|
| | | 17 | public void setDate(Date date) {↵
|
39 | this.id = id;↵ | | 18 | this.↵
|
40 | }↵ | | |
|
41 | ↵ | | |
|
42 | /**↵ | | |
|
43 | * Sets the prop.↵ | | |
|
44 | * @param prop The prop to set↵ | | |
|
45 | */↵ | | |
|
46 | public void setProp(String prop) {↵ | | |
|
47 | this.prop = prop;↵ | | |
|
48 | }↵ | | |
|
49 | ↵ | | |
|
50 | /**↵ | | |
|
51 | * Sets the single.↵ | | |
|
52 | * @param single The single to set↵ | | |
|
53 | */↵ | | |
|
54 | ↵ | | 19 | date = date;↵
|
| | | 20 | }↵
|
|
| | | 21 | public String getTitle() {↵
|
| | | 22 | return title;↵
|
| | | 23 | }↵
|
|
55 | public void setSingle(Single single) {↵ | | 24 | public void setTitle(String↵
|
56 | ↵ | | 25 | title) {↵
|
57 | this.single = single;↵ | | 26 | this.title = ↵
|
58 | }↵ | | |
|
59 | ↵ | | |
|
60 | /**↵ | | |
|
61 | * Returns the string.↵ | | |
|
62 | * @return String↵ | | |
|
63 | */↵ | | |
|
64 | ↵ | | 27 | title;↵
|
| | | 28 | }↵
|
| | | 29 | ↵
|
|
| | | 30 | private Set participants = new HashSet();↵
|
|
65 | public String getString() {↵ | | 31 | public S↵
|
66 | return string;↵ | | |
|
67 | }↵ | | |
|
68 | ↵ | | |
|
69 | /**↵ | | |
|
70 | * Sets the string.↵ | | |
|
71 | * @param string The string to set↵ | | |
|
72 | */↵ | | |
|
73 | ↵ | | 32 | et getParticipants() {↵
|
| | | 33 | return participants;↵
|
| | | 34 | }↵
|
|
74 | public void setString(String string) {↵ | | 35 | public void set↵
|
75 | this.string = string | | 36 | Participants(Set participants) {↵
|
| | | 37 | this.participants = participants
|