package com.boying.entity; import com.boying.common.BaseEntity; import javax.persistence.Entity; import javax.persistence.Table; @Table(name = "studyDir") @Entity public class StudyDir extends BaseEntity { private String name; private Long parentId; private int num; private Boolean hasChildren = false; public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getParentId() { return parentId; } public void setParentId(Long parentId) { this.parentId = parentId; } public int getNum() { return num; } public void setNum(int num) { this.num = num; } public Boolean getHasChildren() { return hasChildren; } public void setHasChildren(Boolean hasChildren) { this.hasChildren = hasChildren; } }