package data;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
public class ClienteRowMapper implements RowMapper<Cliente> {
@Override
public Cliente mapRow(ResultSet rs, int i) throws SQLException {
Cliente cliente = new Cliente();
cliente.setId(rs.getInt("id"));
cliente.setNome(rs.getString("nome"));
return cliente;
}
}