package com.tale.dto; import com.tale.model.Comments; import java.util.List; /** * Created by biezhi on 2017/2/24. */ public class Comment extends Comments { private int levels; private List<Comments> children; public Comment(Comments comments) { setAuthor(comments.getAuthor()); setMail(comments.getMail()); setCoid(comments.getCoid()); setAuthor_id(comments.getAuthor_id()); setUrl(comments.getUrl()); setCreated(comments.getCreated()); setAgent(comments.getAgent()); setIp(comments.getIp()); setContent(comments.getContent()); setOwner_id(comments.getOwner_id()); setCid(comments.getCid()); } public int getLevels() { return levels; } public void setLevels(int levels) { this.levels = levels; } public List<Comments> getChildren() { return children; } public void setChildren(List<Comments> children) { this.children = children; } }