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

io.github.xuyao5.dkl.eskits.schema.base.BaseDocument Maven / Gradle / Ivy

There is a newer version: 0.14
Show newest version
package io.github.xuyao5.dkl.eskits.schema.base;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Thomas.XU(xuyao)
 * @version 25/02/21 17:12
 */
@Data
public abstract class BaseDocument implements Serializable {

    private transient String _id;

    /*
    下列增删字段需要同步修改XContentSupporter.buildMapping()
     */
    @SerializedName(value = "serialNo", alternate = {"SerialNo"})
    private Long serialNo;//永久不变序列号

    @SerializedName(value = "dateTag", alternate = {"DateTag"})
    private String dateTag;//日期Tag

    @SerializedName(value = "sourceTag", alternate = {"SourceTag"})
    private String sourceTag;//数据源Tag

    @SerializedName(value = "createDate", alternate = {"CreateDate"})
    private Date createDate;

    @SerializedName(value = "modifyDate", alternate = {"ModifyDate"})
    private Date modifyDate;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy