package com.palmnest.model.repair;

import java.io.Serializable;
import java.util.Date;

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_bill_comments")
public class RepairBillComment implements Serializable {

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

	private Long    id;
	private Long    billId;// '维修单',
	private Integer star; // 星级
	private String  openId; // 评论用户信息
	private String  description; // 描述
	private String  serviceImpression;
	private Date    createTime;


	public RepairBillComment() {

	}


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


	@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 = "open_id")
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

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

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

	@Column(name = "service_impression")
	public String getServiceImpression() {
		return serviceImpression;
	}

	public void setServiceImpression(String serviceImpression) {
		this.serviceImpression = serviceImpression;
	}

	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
