Commit e06f8173 authored by Kyle Muldoon's avatar Kyle Muldoon

added service function defs

parent f66b4bb5
...@@ -4,6 +4,9 @@ import com.StudentServices.MarksService.model.Student; ...@@ -4,6 +4,9 @@ import com.StudentServices.MarksService.model.Student;
import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List;
@Repository @Repository
public interface StudentRepository extends MongoRepository <Student, String> { public interface StudentRepository extends MongoRepository <Student, String> {
} }
package com.StudentServices.MarksService.service; package com.StudentServices.MarksService.service;
import com.StudentServices.MarksService.model.Student;
import com.StudentServices.MarksService.repository.StudentRepository; import com.StudentServices.MarksService.repository.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
@Service @Service
public class StudentService { public class StudentService {
@Autowired StudentRepository studentRepository; @Autowired StudentRepository studentRepository;
public List<Student> findAllStudents() {
return null;
}
public void addStudent(Student student) {
}
public Student getStudentById(String ID) {
return null;
}
public void updateStudent(Student student) {
}
public void deleteStudent(Student Student) {
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment