package com.casic.PgInterface.intelPlan.domain;

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

@Entity
@Table(name = "PG_PILE")
@SequenceGenerator(name = "SEQ_PG_PILE_ID", sequenceName = "SEQ_PG_PILE_ID", allocationSize = 1, initialValue = 1)
public class PgPile implements Serializable {

    private Long id;
    private String pileCode;//编号
    private boolean active;//状态位

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

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

    @Column(name="PILECODE")
    public String getPileCode() {
        return pileCode;
    }

    public void setPileCode(String pileCode) {
        this.pileCode = pileCode;
    }

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

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