序列化Example类
This commit is contained in:
parent
7a7eb02717
commit
c7239d816a
|
@ -1,15 +1,18 @@
|
||||||
package com.zheng.upms.dao.model;
|
package com.zheng.upms.dao.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class UpmsSystemExample {
|
public class UpmsSystemExample implements Serializable {
|
||||||
protected String orderByClause;
|
protected String orderByClause;
|
||||||
|
|
||||||
protected boolean distinct;
|
protected boolean distinct;
|
||||||
|
|
||||||
protected List<Criteria> oredCriteria;
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private Integer limit;
|
private Integer limit;
|
||||||
|
|
||||||
private Integer offset;
|
private Integer offset;
|
||||||
|
@ -83,7 +86,7 @@ public class UpmsSystemExample {
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract static class GeneratedCriteria {
|
protected abstract static class GeneratedCriteria implements Serializable {
|
||||||
protected List<Criterion> criteria;
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
protected GeneratedCriteria() {
|
protected GeneratedCriteria() {
|
||||||
|
@ -575,14 +578,14 @@ public class UpmsSystemExample {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Criteria extends GeneratedCriteria {
|
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||||
|
|
||||||
protected Criteria() {
|
protected Criteria() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Criterion {
|
public static class Criterion implements Serializable {
|
||||||
private String condition;
|
private String condition;
|
||||||
|
|
||||||
private Object value;
|
private Object value;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
|
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
|
||||||
|
|
||||||
<!-- 为生成的Java模型类添加序列化接口,并生成serialVersionUID字段 -->
|
<!-- 为生成的Java模型类添加序列化接口,并生成serialVersionUID字段 -->
|
||||||
<plugin type="org.mybatis.generator.plugins.SerializablePlugin">
|
<plugin type="com.zheng.common.plugin.SerializablePlugin">
|
||||||
<property name="suppressJavaInterface" value="false"/>
|
<property name="suppressJavaInterface" value="false"/>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue