package cn.com.qmth.stmms.biz.basic.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.com.qmth.stmms.common.enums.Role;

@Entity
@Table(name = "b_role_privilege")
public class RolePrivilege implements Serializable{

    private static final long serialVersionUID = 8849214483955278647L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue
    private Integer id;
    
    @Column(name = "school_id",nullable = false)
    private Integer schoolId;
    
    @Enumerated(EnumType.STRING)
    @Column(name = "role_code",nullable = false)
    private Role roleCode;

    @Column(name = "privilege_code",nullable = false)
    private String privilegeCode;

    @Column(name = "enable",nullable = false)
    private Boolean enable;

	public Integer getId() {
		return id;
	}

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

	public Role getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(Role roleCode) {
		this.roleCode = roleCode;
	}

	public String getPrivilegeCode() {
		return privilegeCode;
	}

	public void setPrivilegeCode(String privilegeCode) {
		this.privilegeCode = privilegeCode;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public Integer getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}


}
