package com.huigou.uasp.bmp.opm.domain.model.access;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 人员角色授权
 *
 * @author yonghuan
 */
@Table(name = "sa_opauthorize")
@Entity
public class Authorize implements Serializable {

    @EmbeddedId
    private AuthorizeId id;

    public Authorize() {
    }

    public Authorize(String orgId, String roleId) {
        id = new AuthorizeId(orgId, roleId);
    }

    public AuthorizeId getId() {
        return id;
    }

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