1List<Student> students = new ArrayList<>();
2studentRepository.findAll().forEach(students::add);
3
1Student retrievedStudent =
2 studentRepository.findById("Eng2015001").get();
3
1Student engStudent = new Student(
2 "Eng2015001", "John Doe", Student.Gender.MALE, 1);
3Student medStudent = new Student(
4 "Med2015001", "Gareth Houston", Student.Gender.MALE, 2);
5studentRepository.save(engStudent);
6studentRepository.save(medStudent);
7