package com.palmnest.model.repair;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 维修类型和用户关系
 *
 * @author wangxz
 * <p>
 * 2018年5月7日
 */
@Entity
@Table(name = "tb_user_repair_type")
public class UserRepairType implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 2145255166612536066L;

	private Long id;// 'ID',
	private Long userId;// '用户ID',
	private Long repairTypeId;// '维修类型ID',
	private Long roleId;// '角色ID'

	public UserRepairType() {

	}


	public UserRepairType(Long userId, Long repairTypeId, Long roleId) {
		super();
		this.userId = userId;
		this.repairTypeId = repairTypeId;
		this.roleId = roleId;
	}


	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

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

	@Column(name = "user_id")
	public Long getUserId() {
		return userId;
	}

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

	@Column(name = "repair_type_id")
	public Long getRepairTypeId() {
		return repairTypeId;
	}

	public void setRepairTypeId(Long repairTypeId) {
		this.repairTypeId = repairTypeId;
	}

	@Column(name = "role_id")
	public Long getRoleId() {
		return roleId;
	}


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


}
