-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump up jnosql version to 1.1.0
Signed-off-by: Maximillian Arruda <[email protected]>
- Loading branch information
Showing
4 changed files
with
17 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletions
16
jnopo-talk/src/main/java/br/org/soujava/coffewithjava/jnopo/Playoffs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
package br.org.soujava.coffewithjava.jnopo; | ||
|
||
import jakarta.data.repository.PageableRepository; | ||
import jakarta.data.repository.DataRepository; | ||
import jakarta.data.repository.Query; | ||
import jakarta.data.repository.Repository; | ||
import jakarta.data.repository.Save; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface Playoffs extends PageableRepository<GameMatch,String> { | ||
List<GameMatch> findByWinnerNameLike(String name); | ||
public interface Playoffs extends DataRepository<GameMatch,String> { | ||
|
||
@Query("select * from GameMatch where tied=true") | ||
List<GameMatch> listTiedPlayoffs(); | ||
@Save | ||
GameMatch save(GameMatch gameMatch); | ||
|
||
@Query("select * from GameMatch where tied=false") | ||
List<GameMatch> listPlayoffsWithWinnerAndLoser(); | ||
List<GameMatch> listNonTiedGameMatches(); | ||
|
||
List<GameMatch> findByLoserNameLike(String name); | ||
default Ranking winnerRanking(){ | ||
return Ranking.winnerRanking(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters