package com.ywt.domain.entity.glasses;

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

@Entity
@Table(name = "sys_sequence")
public class SysSequence implements Serializable {
  private static final long serialVersionUID = 1L;

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "id", insertable = false, nullable = false)
  private Integer id;

  @Column(name = "flag_name")
  private String flagName;

  @Column(name = "value")
  private Integer value;

  @Column(name = "step")
  private Integer step = 1;

  public Integer getId() {
    return id;
  }

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

  public String getFlagName() {
    return flagName;
  }

  public void setFlagName(String flagName) {
    this.flagName = flagName;
  }

  public Integer getValue() {
    return value;
  }

  public void setValue(Integer value) {
    this.value = value;
  }

  public Integer getStep() {
    return step;
  }

  public void setStep(Integer step) {
    this.step = step;
  }

  public String toString() {
    return "SysSequence{id=" + id + 
      ", flagName=" + flagName + 
      ", value=" + value + 
      ", step=" + step + 
      "}";
  }
}