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