}
}
public class GroupMapper implements RowMapper<Group> {
public Group mapRow(ResultSet rs, int rowNum) throws SQLException {
Group g = new Group();
g.setGroupId(rs.getLong("groupId"));
g.setName(rs.getString("name"));
g.setDescription(rs.getString("description"));
try {
g.setUsers(listUsersByGroupName(g.getName()));
}
catch (IOException e) {
e.printStackTrace();
}