package com.casic.PgInterface.devTable.domain;

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

@Entity
@Table(name = "PG_INTELPLAN")
@SequenceGenerator(name = "SEQ_PG_INTELPLAN_ID", sequenceName = "SEQ_PG_INTELPLAN_ID", allocationSize = 1, initialValue = 1)
public class PgIntelPlan implements Serializable {

    private Long id;
    private String parName;//分区
    private String lineName;//排线名称
    private int maxNum;//最大排线数
    private int existNum;//当前排线数
    private boolean active;//状态位

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

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

    @Column(name = "PARNAME")
    public String getParName() {
        return parName;
    }

    public void setParName(String parName) {
        this.parName = parName;
    }

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

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

    @Column(name = "MAXNUM")
    public int getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(int maxNum) {
        this.maxNum = maxNum;
    }

    @Column(name = "EXISTNUM")
    public int getExistNum() {
        return existNum;
    }

    public void setExistNum(int existNum) {
        this.existNum = existNum;
    }

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

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

}