添加 @Serial 序列化注解
This commit is contained in:
@@ -35,6 +35,8 @@ import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
|
|||||||
import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${functionName}Entity
|
* ${functionName}Entity
|
||||||
* @author ${functionAuthor}
|
* @author ${functionAuthor}
|
||||||
@@ -180,6 +182,7 @@ import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
|||||||
)
|
)
|
||||||
public class ${ClassName} extends ${toBoolean(table.optionMap['isBpmForm'])?(table.isTreeEntity?'BpmTree':'Bpm'):table.isTreeEntity?'Tree':'Data'}Entity<${ClassName}> {
|
public class ${ClassName} extends ${toBoolean(table.optionMap['isBpmForm'])?(table.isTreeEntity?'BpmTree':'Bpm'):table.isTreeEntity?'Tree':'Data'}Entity<${ClassName}> {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
<%
|
<%
|
||||||
isExtend = false;
|
isExtend = false;
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
|
|||||||
import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${functionName}Entity
|
* ${functionName}Entity
|
||||||
* @author ${functionAuthor}
|
* @author ${functionAuthor}
|
||||||
@@ -180,6 +182,7 @@ import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
|||||||
)
|
)
|
||||||
public class ${ClassName} extends ${toBoolean(table.optionMap['isBpmForm'])?(table.isTreeEntity?'BpmTree':'Bpm'):table.isTreeEntity?'Tree':'Data'}Entity<${ClassName}> {
|
public class ${ClassName} extends ${toBoolean(table.optionMap['isBpmForm'])?(table.isTreeEntity?'BpmTree':'Bpm'):table.isTreeEntity?'Tree':'Data'}Entity<${ClassName}> {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
<%
|
<%
|
||||||
isExtend = false;
|
isExtend = false;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jeesite.modules.test.entity;
|
package com.jeesite.modules.test.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -55,6 +56,7 @@ import com.jeesite.modules.sys.entity.User;
|
|||||||
)
|
)
|
||||||
public class TestData extends DataEntity<TestData> {
|
public class TestData extends DataEntity<TestData> {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private String testInput; // 单行文本
|
private String testInput; // 单行文本
|
||||||
private String testTextarea; // 多行文本
|
private String testTextarea; // 多行文本
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jeesite.modules.test.entity;
|
package com.jeesite.modules.test.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
@@ -54,6 +55,7 @@ import com.jeesite.modules.sys.entity.User;
|
|||||||
)
|
)
|
||||||
public class TestDataChild extends DataEntity<TestDataChild> {
|
public class TestDataChild extends DataEntity<TestDataChild> {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private Long testSort; // 排序号
|
private Long testSort; // 排序号
|
||||||
private TestData testData; // 父表主键 父类
|
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.annotation.Table;
|
||||||
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测试树表Entity
|
* 测试树表Entity
|
||||||
* @author ThinkGem
|
* @author ThinkGem
|
||||||
@@ -27,6 +29,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|||||||
)
|
)
|
||||||
public class TestTree extends TreeEntity<TestTree> {
|
public class TestTree extends TreeEntity<TestTree> {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private String treeCode; // 节点编码
|
private String treeCode; // 节点编码
|
||||||
private String treeName; // 节点名称
|
private String treeName; // 节点名称
|
||||||
|
|||||||
Reference in New Issue
Block a user