Skip to content
Snippets Groups Projects
Commit fd7e9f7c authored by Marina Mădăraş's avatar Marina Mădăraş
Browse files

Add course and cohort

parent eea1b841
No related merge requests found
Pipeline #1173075 passed with warnings
.DS_Store 0 → 100644
File added
......@@ -34,3 +34,6 @@ src/main/resources/sentry.properties
src/test/resources/application-test.properties
oa-spec-labracore.json
.DS_Store
......@@ -208,6 +208,8 @@ public class DevDatabaseLoader {
private Program p_cse;
private Program p_ee;
private Cohort c_cse_25;
private Cohort c_cse_19;
private Cluster c_cse_19_1;
private Cluster c_cse_19_2;
......@@ -224,6 +226,9 @@ public class DevDatabaseLoader {
private Cluster c_ee_20_1;
private Cluster c_ee_20_2;
// AA ----------------------------------
private Course c_aa;
// OOP ---------------------------------
private Course c_oop;
......@@ -530,6 +535,10 @@ public class DevDatabaseLoader {
* Initializes the cohorts for the application.
*/
public void initCohorts() {
c_cse_25 = cohortRepository.save(Cohort.builder()
.name("CSE 2025")
.program(p_cse)
.build());
c_cse_19 = cohortRepository.save(Cohort.builder()
.name("CSE 2019")
.program(p_cse)
......@@ -598,6 +607,13 @@ public class DevDatabaseLoader {
* Initializes the courses for the application.
*/
public void initCourses() {
c_aa = courseRepository.save(Course.builder()
.name("Advanced Algorithms")
.code("CS4530")
.program(p_cse)
.managers(Set.of(cse_teacher1))
.build());
c_oop = courseRepository.save(Course.builder()
.name("Object-Oriented Programming")
.code("CSE1100")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment