public JdbcPet mapRow(ResultSet rs, int rownum) throws SQLException { JdbcPet pet = new JdbcPet(); pet.setId(rs.getInt("id")); pet.setName(rs.getString("name")); pet.setBirthDate(rs.getDate("birth_date")); pet.setTypeId(rs.getInt("type_id")); pet.setOwnerId(rs.getInt("owner_id")); return pet; }