CatchTheLettersBackend/src/main/java/com/example/catchTheLetters/entity/Version.java

35 lines
639 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.catchTheLetters.entity;
import lombok.Data;
import java.io.Serializable;
/**
* 数据表版本类用于Realm对MongoDB的数据表版本进行同步检测版本号不同则进行同步
*
* @author spyn
*/
@Data
public class Version implements Serializable {
/**
* ID
*/
private String id;
/**
* 数据表名称(即类名)
*/
private String table;
/**
* 数据表版本号
*/
private Long version;
public Version() {
}
public Version(String table, Long version) {
this.table = table;
this.version = version;
}
}