package com.palmnest.model.estateserve;

import javax.persistence.*;

/**
 * @Author HXT
 * @Description 服务-功能关系实体类
 * @Date 2018/8/13 17:36
 **/
@Entity
@Table(name = "tr_service_function")
public class ServiceFunctionRelation {

	private Long    id;
	private Integer functionId;
	private Integer serviceId;
	private Integer type;

	@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 = "function_id")
	public Integer getFunctionId() {
		return functionId;
	}

	public void setFunctionId(Integer functionId) {
		this.functionId = functionId;
	}

	@Column(name = "service_id")
	public Integer getServiceId() {
		return serviceId;
	}

	public void setServiceId(Integer serviceId) {
		this.serviceId = serviceId;
	}

	@Column(name = "type")
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
