package com.casic.PgInterface.intelPlan.domain;

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

@Entity
@Table(name = "PG_LINEHOLE")
@SequenceGenerator(name = "SEQ_PG_LINEHOLE_ID", sequenceName = "SEQ_PG_LINEHOLE_ID", allocationSize = 1, initialValue = 1)
public class PgLineHole implements Serializable {

    private Long id;
    private String lineName;//入廊管线
    private Long pileAcuId;//桩分区ID
    private Long secRow;//行号
    private Long secColumn;//列号
    private boolean active;//状态位

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PG_LINEHOLE_ID")
    public Long getId() {
        return id;
    }

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

    @Column(name="LINENAME")
    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    @Column(name="PILEACUID")
    public Long getPileAcuId() {
        return pileAcuId;
    }

    public void setPileAcuId(Long pileAcuId) {
        this.pileAcuId = pileAcuId;
    }

    @Column(name="SECROW")
    public Long getSecRow() {
        return secRow;
    }

    public void setSecRow(Long secRow) {
        this.secRow = secRow;
    }

    @Column(name="SECCOLUMN")
    public Long getSecColumn() {
        return secColumn;
    }

    public void setSecColumn(Long secColumn) {
        this.secColumn = secColumn;
    }

    @Column(name="ACTIVE")
    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

}