package jdit.testing.dao;

import com.google.common.collect.ImmutableList;
import jdit.testing.domain.ImmutableChessGame;
import jdit.testing.domain.ImmutableChessPlayer;
import jdit.testing.domain.mapper.ChessGameMapper;
import jdit.testing.domain.mapper.ChessPlayerMapper;
import org.skife.jdbi.v2.sqlobject.SqlQuery;
import org.skife.jdbi.v2.sqlobject.customizers.Mapper;

/**
 * Date: 18.03.15
 * Time: 20:54
 *
 * @author Artem Prigoda
 */
public interface ChessDao {

    @SqlQuery("chessDao/get-chess-games.sql")
    @Mapper(ChessGameMapper.class)
    public ImmutableList<ImmutableChessGame> getChessGames();

    @SqlQuery("chessDao/get-chess-players.sql")
    @Mapper(ChessPlayerMapper.class)
    public ImmutableList<ImmutableChessPlayer> getChessPlayers();
}

@@ -544,39 +544,32 @@
 pper.class)%0A    
-public 
 ImmutableList%3CIm
@@ -693,23 +693,16 @@
 ss)%0A    
-public 
 Immutabl

Remove public modifiers