source: src/main/java/project/educatum/repository/HomeworkRepository.java

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 
1package project.educatum.repository;
2
3import org.springframework.data.jpa.repository.JpaRepository;
4import org.springframework.data.jpa.repository.Modifying;
5import org.springframework.data.jpa.repository.Query;
6import org.springframework.stereotype.Repository;
7import project.educatum.model.Homework;
8
9import javax.transaction.Transactional;
10import java.util.List;
11
12@Repository
13public 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.