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