package com.casic.PgInterface.intelPlan.domain;

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

@Entity
@Table(name = "PG_SECTION")
@SequenceGenerator(name = "SEQ_PG_SECTION_ID", sequenceName = "SEQ_PG_SECTION_ID", allocationSize = 1, initialValue = 1)
public class PgSection implements Serializable {

    private Long id;
    private Long roadId;//截面类型
    private String lineName;//管线类型
    private Long secRow;//行数
    private Long secColumn;//列数
    private boolean active;//状态位

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

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

    @Column(name="ROADID")
    public Long getRoadId() {
        return roadId;
    }

    public void setRoadId(Long roadId) {
        this.roadId = roadId;
    }

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

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

    @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;
    }
}