package com.hnshituo.core.auth.vo;

import java.io.Serializable;
import java.util.List;

import com.hnshituo.basic.vo.BaseVO;
import com.hnshituo.core.auth.mapper.UserRoleMapper;
import com.hnshituo.orm.annotation.Column;
import com.hnshituo.orm.annotation.Id;
import com.hnshituo.orm.annotation.Table;

@Table(name="CORE_AUTH_USER_ROLE", namespace=UserRoleMapper.class)
public class UserRole extends BaseVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6443056419789286141L;

	@Id
	private Integer id;

	/** 用户编号 */
	@Column("USER_ID")
	private String userId;

	/** 角色编号 */
	@Column("ROLE_ID")
	private Integer roleId;
	
	private List<UserRole> userRoleList;

	public Integer getId() {
		return this.id;
	}

	public String getUserId() {
		return this.userId;
	}

	public Integer getRoleId() {
		return this.roleId;
	}

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

	public void setUserId(String userId) {
		this.userId = userId;
	}

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

	public void setUserRoleList(List<UserRole> userRoleList) {
		this.userRoleList = userRoleList;
	}

	public List<UserRole> getUserRoleList() {
		return userRoleList;
	}

}
