All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.luoshu.open.id.IdPO Maven / Gradle / Ivy

package com.luoshu.open.id;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 对应数据库实体对象
 */
@Data
public class IdPO {

    private Integer id;

    /**
     * 类别,定义不同的类型,每个类别有一个自己的序列
     */
    private String category;
    /**
     * 序列的当前值
     */
    private Long num;

    /**
     * 最大数值
     */
    private Long maxNum;

    /**
     * 版本号,用于乐观锁
     */
    private String version;

    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy