Checkpoint config
This commit is contained in:
@ -29,7 +29,7 @@ public class FileToDatabaseMigrator {
|
||||
|
||||
while (rows.hasNext()) {
|
||||
Row row = rows.next();
|
||||
|
||||
|
||||
Cell title_cell = row.getCell(title_index);
|
||||
Cell name_cell = row.getCell(name_index);
|
||||
Cell surname_cell = row.getCell(surname_index);
|
||||
@ -48,9 +48,11 @@ public class FileToDatabaseMigrator {
|
||||
lecturer_surname = surname_cell.toString();
|
||||
}
|
||||
|
||||
Lecturer newLecturer = new Lecturer(lecturer_title, lecturer_name, lecturer_surname);
|
||||
lecturerService.save(newLecturer);
|
||||
|
||||
if (lecturerService.getLecturer(lecturer_title, lecturer_name, lecturer_surname) == null) {
|
||||
Lecturer newLecturer = new Lecturer(lecturer_title, lecturer_name, lecturer_surname);
|
||||
lecturerService.save(newLecturer);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user