package com.fenfei.she.pethospital.beans.manager;

import com.fenfei.she.pethospital.beans.BaseEntity;

import javax.persistence.*;

/**
 * author shefenfei
 * description 角色
 * time 2015年6月12日 14:24:14
 */
@Entity
@Table(name = "tb_role")
public class Role extends BaseEntity {
    /**
     * 角色id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int roleId;
    /**
     * 角色名
     */
    @Column(name = "roleName",length = 25,nullable = true)
    private String roleName;

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

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