]> git.somenet.org - pub/jan/dst18.git/blob - ass1-jpa/src/main/java/dst/ass1/jpa/model/ICourse.java
Add template for assignment 1
[pub/jan/dst18.git] / ass1-jpa / src / main / java / dst / ass1 / jpa / model / ICourse.java
1 package dst.ass1.jpa.model;
2
3 import java.math.BigDecimal;
4 import java.util.Collection;
5 import java.util.Date;
6
7 public interface ICourse {
8
9     Long getId();
10
11     void setId(Long id);
12
13     String getName();
14
15     void setName(String name);
16
17     Integer getCapacity();
18
19     void setCapacity(Integer capacity);
20
21     Boolean getPremium();
22
23     void setPremium(Boolean premium);
24
25     BigDecimal getCost();
26
27     void setCost(BigDecimal cost);
28
29     CourseStatus getStatus();
30
31     void setStatus(CourseStatus status);
32
33     Date getStart();
34
35     void setStart(Date start);
36
37     Date getEnd();
38
39     void setEnd(Date end);
40
41     ICoursePlatform getCoursePlatform();
42
43     void setCoursePlatform(ICoursePlatform coursePlatform);
44
45     ILecturer getLecturer();
46
47     void setLecturer(ILecturer lecturer);
48
49     Collection<ILesson> getLessons();
50
51     void setLessons(Collection<ILesson> lessons);
52
53     void addLesson(ILesson lesson);
54
55     IMetadata getMetadata();
56
57     void setMetadata(IMetadata metadata);
58
59     Collection<IEnrollment> getEnrollments();
60
61     void setEnrollments(Collection<IEnrollment> enrollments);
62
63     void addEnrollment(IEnrollment enrollment);
64
65 }