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:
580 bytes
|
Line | |
---|
1 | package project.educatum.repository;
|
---|
2 |
|
---|
3 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
4 | import org.springframework.data.jpa.repository.Modifying;
|
---|
5 | import org.springframework.data.jpa.repository.Query;
|
---|
6 | import org.springframework.stereotype.Repository;
|
---|
7 | import project.educatum.model.Homework;
|
---|
8 |
|
---|
9 | import javax.transaction.Transactional;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @Repository
|
---|
13 | public interface HomeworkRepository extends JpaRepository<Homework, Integer> {
|
---|
14 | List<Homework> findAllByDescriptionContainingIgnoreCase(String opis);
|
---|
15 |
|
---|
16 | Homework findByDescription(String opis);
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.