/* (non-Javadoc)
* @see org.springframework.jdbc.object.MappingSqlQuery#mapRow(java.sql.ResultSet, int)
*/
protected Object mapRow(ResultSet rs, int rowNum) throws SQLException {
Comment comment = new Comment();
comment.setBody(rs.getString("Body"));
comment.setCommentId(rs.getInt("CommentId"));
comment.setPostDate(rs.getTimestamp("PostDate"));
comment.setReplyTo(new Integer(rs.getInt("ReplyTo")));
if (rs.wasNull()) comment.setReplyTo(null);
comment.setEntry(rs.getInt("Entry"));
comment.setSubject(rs.getString("Subject"));
User user = new User();
user.setEmail(rs.getString("Email"));
user.setPassword(rs.getString("Password"));
user.setType(rs.getInt("Type"));
user.setUserId(rs.getInt("UserId"));
user.setUsername(rs.getString("Username"));
comment.setPostedBy(user);
return comment;
}