Checkpoint
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.plannaplan.services;
|
||||
|
||||
import com.plannaplan.entities.Course;
|
||||
import com.plannaplan.repositories.CourseRepository;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -9,4 +10,8 @@ import org.springframework.stereotype.Service;
|
||||
public class CourseService {
|
||||
@Autowired
|
||||
private CourseRepository repo;
|
||||
|
||||
public Course getCourseByName(String name) {
|
||||
return this.repo.findByName(name);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user