Checkpoint

This commit is contained in:
Filip Izydorczyk
2020-08-05 21:29:48 +02:00
parent 430e8c9e7d
commit bb3e9c536d
3 changed files with 29 additions and 1 deletions

View File

@ -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);
}
}