Interface GameRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<Game>
findByIdAndPlayer(long gameId, long playerId)
java.util.Optional<Game>
findFirstByCurrentState(GameState state)
-
-
-
Method Detail
-
findByIdAndPlayer
@Query(value="SELECT DISTINCT * FROM game g INNER JOIN game_player gp ON gp.game_id = g.game_id WHERE g.game_id = :gameId AND gp.player_id = :playerId", nativeQuery=true) java.util.Optional<Game> findByIdAndPlayer(long gameId, long playerId)
-
-