package com.casic.PgInterface.patroler.domain;

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

/**
 * Created by yxw on 2018/8/21.
 */
@Entity
@Table(name = "PG_MAINTAIN_TYPE")
@SequenceGenerator(name = "SEQ_PG_MAINTAIN_TYPE_ID", sequenceName = "SEQ_PG_MAINTAIN_TYPE_ID",allocationSize=1,initialValue=1)
public class PgMaintainType implements Serializable {
    private static final long serialVersionUID = 1L;
    private long id;
    private String type;
    private String model;
    private int active;

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

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

    @Column(name = "TYPE")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "MODEL")
    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

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

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


}
