com.tlgen.orm.domain.SysDept Maven / Gradle / Ivy
The newest version!
package com.tlgen.orm.domain;
import com.tlgen.orm.annotation.FieldName;
import com.tlgen.orm.annotation.Id;
import com.tlgen.orm.annotation.ParentId;
import com.tlgen.orm.annotation.TableName;
import java.util.List;
@TableName(name = "sys_dept")
public class SysDept {
@Id
private String id;
@FieldName(name = "dept_name")
private String deptName;
@ParentId
@FieldName(name = "parent_id")
private String parentId;
private List children;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public List getChildren() {
return children;
}
public void setChildren(List children) {
this.children = children;
}
@Override
public String toString() {
return "SysDept{" +
"id='" + id + '\'' +
", deptName='" + deptName + '\'' +
", parentId='" + parentId + '\'' +
", children=" + children +
'}';
}
}