Last change
on this file since 33d4f5d was 33d4f5d, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
bugfixes and refactoring
|
-
Property mode
set to
100644
|
File size:
603 bytes
|
Line | |
---|
1 | package it.finki.tinki.repository;
|
---|
2 |
|
---|
3 | import it.finki.tinki.model.EmbeddedMatchId;
|
---|
4 | import it.finki.tinki.model.Match;
|
---|
5 | import it.finki.tinki.model.Users.User;
|
---|
6 | import it.finki.tinki.model.enumerator.WorkType;
|
---|
7 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
8 | import org.springframework.stereotype.Repository;
|
---|
9 |
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @Repository
|
---|
13 | public interface MatchRepository extends JpaRepository<Match, EmbeddedMatchId> {
|
---|
14 | List<Match> findAllByEmbeddedMatchIdUserAndTypeOrderByCoefficientDesc(User user, WorkType type);
|
---|
15 | List<Match> deleteAllByEmbeddedMatchId_User_Id(Long userId);
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.