序列化Example类

This commit is contained in:
shuzheng 2017-01-01 17:58:53 +08:00
parent 7a7eb02717
commit c7239d816a
2 changed files with 8 additions and 5 deletions

View File

@ -1,15 +1,18 @@
package com.zheng.upms.dao.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class UpmsSystemExample {
public class UpmsSystemExample implements Serializable {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
private static final long serialVersionUID = 1L;
private Integer limit;
private Integer offset;
@ -83,7 +86,7 @@ public class UpmsSystemExample {
return offset;
}
protected abstract static class GeneratedCriteria {
protected abstract static class GeneratedCriteria implements Serializable {
protected List<Criterion> criteria;
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() {
super();
}
}
public static class Criterion {
public static class Criterion implements Serializable {
private String condition;
private Object value;

View File

@ -20,7 +20,7 @@
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 为生成的Java模型类添加序列化接口并生成serialVersionUID字段 -->
<plugin type="org.mybatis.generator.plugins.SerializablePlugin">
<plugin type="com.zheng.common.plugin.SerializablePlugin">
<property name="suppressJavaInterface" value="false"/>
</plugin>