package com.casic.PgInterface.intelPlan.domain;


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

@Entity
@Table(name = "PG_PILEACU")
@SequenceGenerator(name = "SEQ_PG_PILEACU_ID", sequenceName = "SEQ_PG_PILEACU_ID", allocationSize = 1, initialValue = 1)
public class PgPileAcu implements Serializable {

    private Long id;
    private String acuCode;//编号
    private Long length;//长度
    private Long roadId;//所属道路
    private boolean active;//状态位

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

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

    @Column(name="ACUCODE")
    public String getAcuCode() {
        return acuCode;
    }

    public void setAcuCode(String acuCode) {
        this.acuCode = acuCode;
    }

    @Column(name="LENGTH")
    public Long getLength() {
        return length;
    }

    public void setLength(Long length) {
        this.length = length;
    }

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

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

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

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