All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.base4j.mvc.sys.entity.SysDict Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package com.base4j.mvc.sys.entity;

import com.base4j.mvc.base.entity.IPrepare;
import org.apache.ibatis.annotations.Param;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Table(name = "SEED_SYS_DICT")
public class SysDict implements IPrepare {

    private static final long serialVersionUID = -3036113094653530550L;
    @Id
    private Long id;
    private Long sysOrgId;
    private String code;
    private String name;
    private String memo;
    private Long parentId;
    private Date createDt;
    private Long createBy;
    private Date updateDt;
    private Long updateBy;
    private int depth;

    public int getDepth() {
        return depth;
    }

    public void setDepth(int depth) {
        this.depth = depth;
    }

    @Transient   //标识数据库中没有的
    private int childNum;
    @Transient
    private List children;




    public List getChildren() {
        if (children == null) {
            children = new ArrayList(0);
        }
        return children;
    }




    public int getChildNum() {
        return childNum;
    }

    public void setChildNum(int childNum) {
        this.childNum = childNum;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSysOrgId() {
        return sysOrgId;
    }

    public void setSysOrgId(Long sysOrgId) {
        this.sysOrgId = sysOrgId;
    }

     public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy