
Java/JDBC
[Java / JDBC] Select
전체 조회모든 테이블에있는 데이터 조회Mapper데이터베이스에서 조회한 데이터를 `DTO` 형식으로 변환하는 클래스테이블명+`Mapper`로 클래스명 작성재정의 메서드는 클래스명에 빨간밑줄이 뜨는데 Add unimplements method를 클릭하면 생성public class PokemonMapper implements RowMapper { @Override public PokemonDto mapRow(ResultSet rs, int idx) throws SQLException { PokemonDto pokemonDto = new PokemonDto(); pokemonDto.setPokemonNo(rs.getInt("pokemon_no")); pokemonDto.setPokemonName(rs.g..