01: package events;
02:
03: import java.util.*;
04:
05: public class Event {
06: private Long id;
07:
08: private String title;
09: private Date date;
10:
11: public Event() {
12: }
13:
14: public Long getId() {
15: return id;
16: }
17:
18: private void setId(Long id) {
19: this .id = id;
20: }
21:
22: public Date getDate() {
23: return date;
24: }
25:
26: public void setDate(Date date) {
27: this .date = date;
28: }
29:
30: public String getTitle() {
31: return title;
32: }
33:
34: public void setTitle(String title) {
35: this .title = title;
36: }
37:
38: private Set participants = new HashSet();
39:
40: public Set getParticipants() {
41: return participants;
42: }
43:
44: public void setParticipants(Set participants) {
45: this.participants = participants;
46: }
47:
48: }
|