1 package dst.ass1.jpa.util;
3 public final class Constants {
5 // FIXME: update according to model updates (membership, enrollment, course capacity, ...)
7 public static final String JPA_PERSISTENCE_UNIT = "dst_pu";
10 public static final String T_COURSE = "Course";
11 public static final String T_COURSEPLATFORM = "CoursePlatform";
12 public static final String T_ENROLLMENT = "Enrollment";
13 public static final String T_LECTURER = "Lecturer";
14 public static final String T_LESSON = "Lesson";
15 public static final String T_MATERIAL = "Material";
16 public static final String T_MATERIALSERVER = "MaterialServer";
17 public static final String T_MEMBERSHIP = "Membership";
18 public static final String T_METADATA = "Metadata";
19 public static final String T_PARTICIPANT = "Participant";
20 public static final String T_PERSON = "Person";
22 /* IDs (FOREIGN KEYS) */
23 public static final String I_COURSE = "course_id";
24 public static final String I_COURSEPLATFORM = "courseplatform_id";
25 public static final String I_LECTURER = "lecturer_id";
26 public static final String I_LESSON = "lesson_id";
27 public static final String I_MATERIAL = "material_id";
28 public static final String I_MATERIALSERVER = "materialserver_id";
29 public static final String I_MEMBERSHIP = "membership_id";
30 public static final String I_METADATA = "metadata_id";
31 public static final String I_PARTICIPANT = "participant_id";
32 public static final String I_PERSON = "person_id";
33 public static final String I_LESSON_REQUIRED = "requiredLessons_id";
34 public static final String I_LESSON_REQUIRED_BY = "requiredLessonsBy_id";
36 /* MEMBER ATTRIBUTES */
37 public static final String M_ADDRESS_STREET = "street";
38 public static final String M_ADDRESS_CITY = "city";
39 public static final String M_ADDRESS_ZIP_CODE = "zipCode";
40 public static final String M_COURSE_NAME = "name";
41 public static final String M_COURSE_PREMIUM = "premium";
42 public static final String M_COURSE_COST = "cost";
43 public static final String M_COURSE_CAPACITY = "capacity";
44 public static final String M_COURSE_STATUS = "status";
45 public static final String M_COURSE_START = "start";
46 public static final String M_COURSE_END = "end";
47 public static final String M_COURSE_LECTURER = "lecturer";
48 public static final String M_COURSE_COURSEPLATFORM = "coursePlatform";
49 public static final String M_COURSE_PARTICIPANTS = "participants";
50 public static final String M_COURSEPLATFORM_NAME = "name";
51 public static final String M_COURSEPLATFORM_URL = "url";
52 public static final String M_ENROLLMENT_ENROLLED_AT = "enrolledAt";
53 public static final String M_ENROLLMENT_PAID = "paid";
54 public static final String M_LECTURER_LESSONS = "lessons";
55 public static final String M_LESSON_DESCRIPTION = "description";
56 public static final String M_LESSON_START = "start";
57 public static final String M_LESSON_END = "end";
58 public static final String M_LESSON_REQUIRED = "requiredLessons";
59 public static final String M_LESSON_COURSE = "course";
60 public static final String M_MATERIAL_URN = "urn";
61 public static final String M_MATERIAL_TYPE = "type";
62 public static final String M_MATERIAL_UPLOADED = "uploaded";
63 public static final String M_MATERIAL_LAST_UPDATE = "lastUpdate";
64 public static final String M_MATERIAL_LESSON = "lesson";
65 public static final String M_MATERIALSERVER_NAME = "name";
66 public static final String M_MATERIALSERVER_LAST_MAINTENANCE = "lastMaintenance";
67 public static final String M_MATERIALSERVER_NEXT_MAINTENANCE = "nextMaintenance";
68 public static final String M_MATERIALSERVER_COURSE_PLATFORM = "coursePlatform";
69 public static final String M_MEMBERSHIP_PREMIUM = "premium";
70 public static final String M_MEMBERSHIP_DISCOUNT = "discount";
71 public static final String M_METADATA_DATA = "data";
72 public static final String M_PARTICIPANT_ACCOUNT = "accountNo";
73 public static final String M_PARTICIPANT_BANK_CODE = "bankCode";
74 public static final String M_PERSON_NAME = "name";
75 public static final String M_PERSON_EMAIL = "email";
76 public static final String M_PERSON_PASSWORD = "password";
78 /* ASSOCIATION NAMES (FOR QUERIES) */
79 public static final String A_MATERIALS = "materials";
80 public static final String A_LESSONS = "lessons";
81 public static final String A_COURSE = "course";
84 public static final String Q_PARTICIPANT_BY_EMAIL = "participantByEmail";
85 public static final String Q_ONGOING_AND_FREE_PLATFORM_COURSES = "ongoingAndFreeCoursesByPlatform";
86 public static final String Q_MOST_ACTIVE_LECTURER = "mostActiveLecturer";
87 public static final String Q_UPCOMING_LESSONS = "upcomingLessonsPerLecturerForCourse";
90 public static final String J_LESSONS_REQUIRED = "lesson_required";
91 public static final String J_METADATA_DATA = "metadata_data";
92 public static final String J_MATERIALSERVER_MATERIAL = "materialserver_material";
93 public static final String J_LECTURER_LESSON = "lecturer_lesson";
94 public static final String J_PARTICIPANT_MEMBERSHIP = "participant_membership";
95 public static final String J_PARTICIPANT_ENROLLMENT = "participant_enrollment";
96 public static final String J_COURSE_ENROLLMENT = "course_enrollment";
97 public static final String J_COURSEPLATFORM_MATERIALSERVER = "courseplatform_materialserver";
100 public static final String MONGO_DB_NAME = "dst";
101 public static final String COLL_MATERIAL_DATA = "MaterialData";
103 private Constants() {