package com.casic.PgInterface.devTable.domain;

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

@Entity
@Table(name = "PG_ROAD")
@SequenceGenerator(name = "SEQ_PG_ROAD_ID", sequenceName = "SEQ_PG_ROAD_ID",allocationSize=1,initialValue=1)
public class PgRoad implements Serializable{

    private static final long serialVersionUID = 1L;
    private long id;
    private String roadName;
    private int active;

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

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

    @Column(name = "ROADNAME")
    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    @Column(name="ACTIVE")
    public int getActive() {
        return active;
    }

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

}