package userio.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Entity
public class RoleAuth {

    private Long id;
    private Long roleCategory;
    private String auth;
    private Boolean payAuth;
    private Boolean retentionAuth;
    private Boolean isNatureOpen;
    private Boolean topAuth;
    private String roleName;
    private Long createAccount;
    private Date createTime;
    private Long modifyAccount;
    private Date modifyTime;
    private Boolean delFlag;

    //@Transient
    private List<RoleAuthDetail> roleAuthDetails;

    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }

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

    public Long getRoleCategory() {
        return roleCategory;
    }

    public void setRoleCategory(Long roleCategory) {
        this.roleCategory = roleCategory;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public Boolean getPayAuth() {
        return payAuth;
    }

    public void setPayAuth(Boolean payAuth) {
        this.payAuth = payAuth;
    }

    public Boolean getRetentionAuth() {
        return retentionAuth;
    }

    public void setRetentionAuth(Boolean retentionAuth) {
        this.retentionAuth = retentionAuth;
    }

    public Boolean getIsNatureOpen() {
        return isNatureOpen;
    }

    public void setIsNatureOpen(Boolean isNatureOpen) {
        this.isNatureOpen = isNatureOpen;
    }

    public Boolean getTopAuth() {
        return topAuth;
    }

    public void setTopAuth(Boolean topAuth) {
        this.topAuth = topAuth;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Long getCreateAccount() {
        return createAccount;
    }

    public void setCreateAccount(Long createAccount) {
        this.createAccount = createAccount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getModifyAccount() {
        return modifyAccount;
    }

    public void setModifyAccount(Long modifyAccount) {
        this.modifyAccount = modifyAccount;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    @Transient
    public List<RoleAuthDetail> getRoleAuthDetails() {
        return roleAuthDetails;
    }

    public void setRoleAuthDetails(List<RoleAuthDetail> roleAuthDetails) {
        this.roleAuthDetails = roleAuthDetails;
    }

    @Override
    public String toString() {
        return "RoleAuth [id=" + id + ", roleCategory=" + roleCategory
                + ", auth=" + auth + "]";
    }

}
