添加 @Serial 序列化注解
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.test.entity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@@ -55,6 +56,7 @@ import com.jeesite.modules.sys.entity.User;
|
||||
)
|
||||
public class TestData extends DataEntity<TestData> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String testInput; // 单行文本
|
||||
private String testTextarea; // 多行文本
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.test.entity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.Size;
|
||||
@@ -54,6 +55,7 @@ import com.jeesite.modules.sys.entity.User;
|
||||
)
|
||||
public class TestDataChild extends DataEntity<TestDataChild> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Long testSort; // 排序号
|
||||
private TestData testData; // 父表主键 父类
|
||||
|
||||
@@ -13,6 +13,8 @@ import com.jeesite.common.mybatis.annotation.Column;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 测试树表Entity
|
||||
* @author ThinkGem
|
||||
@@ -27,6 +29,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
)
|
||||
public class TestTree extends TreeEntity<TestTree> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String treeCode; // 节点编码
|
||||
private String treeName; // 节点名称
|
||||
|
||||
Reference in New Issue
Block a user