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_repair_return_visits")
public class RepairReturnVisit implements Serializable {

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

	private Long    id;
	private Long    billId;// '维修单',
	private Long    commentId;// '评价单',
	private Integer star; // 星级
	private String  description; // 描述

	public RepairReturnVisit() {

	}

	public RepairReturnVisit(Long billId, Integer star, String description) {
		super();
		this.billId = billId;
		this.star = star;
		this.description = description;
	}


	@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 = "bill_id")
	public Long getBillId() {
		return billId;
	}

	public void setBillId(Long billId) {
		this.billId = billId;
	}

	@Column(name = "star")
	public Integer getStar() {
		return star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	@Column(name = "description")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	@Column(name = "comment_id")
	public Long getCommentId() {
		return commentId;
	}

	public void setCommentId(Long commentId) {
		this.commentId = commentId;
	}

}
