package com.palmnest.model.repair;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 服务之窗1L- RepairAddress
 *
 * @Description TODO
 * @author: jiangyong
 * @since: 2020/8/13 16:12
 */
@Entity
@Table(name = "tb_repair_address")
public class RepairAddress implements Serializable {
    private static final long serialVersionUID = -3709261300890705278L;
    private Long id;
    private Integer orgId;
    private String address;
    private Integer orderNo;
    private Date createTime;
    private Integer creatorId;
    private Integer enabled;

    public RepairAddress() {
    }

    public RepairAddress(Long id, Integer orgId, String address) {
        this.id = id;
        this.orgId = orgId;
        this.address = address;
    }

    @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 = "org_id")
    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Column(name = "order_no")
    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

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

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

    @Column(name = "creator_id")
    public Integer getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Integer creatorId) {
        this.creatorId = creatorId;
    }
    @Column(name = "enabled")
    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }
}
