class CommentRowMapper implements RowMapper<Comment> {
@Override
public Comment mapRow(ResultSet rs, int numRow) throws SQLException {
Comment comment = new Comment();
comment.setId(rs.getInt("id"));
comment.setArticleID(rs.getInt("articleID"));
comment.setAuthor(rs.getString("author"));
comment.setText(rs.getString("text"));
comment.setDateCreated(rs.getString("dateCreated"));
return comment;
}