package com.ywt.mg.domain.entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "sys_sequence")
@Entity
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 + 
      "}";
  }
}