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