Last change
on this file was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
482 bytes
|
Line | |
---|
1 | package project.educatum.repository;
|
---|
2 |
|
---|
3 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
4 | import org.springframework.stereotype.Repository;
|
---|
5 | import project.educatum.model.Subject;
|
---|
6 |
|
---|
7 | import java.util.List;
|
---|
8 | import java.util.Optional;
|
---|
9 |
|
---|
10 | @Repository
|
---|
11 | public interface SubjectRepository extends JpaRepository<Subject, Integer> {
|
---|
12 |
|
---|
13 | List<Subject> findAllByNameContainingIgnoreCase(String name);
|
---|
14 |
|
---|
15 | Optional<Subject> findById(Integer id);
|
---|
16 |
|
---|
17 | Subject findByName(String name);
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.