Skip to content

Commit

Permalink
fixed github issues/772
Browse files Browse the repository at this point in the history
  • Loading branch information
qmdx committed Feb 21, 2019
1 parent ae8048e commit ffbbbe5
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,16 @@ protected ConfigBuilder pretreatmentConfigBuilder(ConfigBuilder config) {
// 乐观锁注解
tableInfo.setImportPackages(Version.class.getCanonicalName());
}
boolean importSerializable = true;
if (StringUtils.isNotEmpty(config.getSuperEntityClass())) {
// 父实体
tableInfo.setImportPackages(config.getSuperEntityClass());
} else {
importSerializable = false;
}
if (config.getGlobalConfig().isActiveRecord()) {
importSerializable = true;
}
if (importSerializable) {
tableInfo.setImportPackages(Serializable.class.getCanonicalName());
}
// Boolean类型is前缀处理
Expand Down

0 comments on commit ffbbbe5

Please sign in to comment.