Skip to content

Commit

Permalink
fix Oracle or SQLServer plugin configuration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zouzg committed Jun 6, 2017
1 parent f38cd8f commit 52d8643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<executions>
<execution>
<id>copy-files-on-build</id>
<phase>package</phase>
<phase>compile</phase>
<goals>
<goal>copy-resources</goal>
</goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ public void generate() throws Exception {

// limit/offset插件
if (generatorConfig.isOffsetLimit()) {
PluginConfiguration pluginConfiguration = new PluginConfiguration();
if (DbType.MySQL.name().equals(selectedDatabaseConfig.getDbType())
|| DbType.PostgreSQL.name().equals(selectedDatabaseConfig.getDbType())) {
PluginConfiguration pluginConfiguration = new PluginConfiguration();
pluginConfiguration.addProperty("type", "com.zzg.mybatis.generator.plugins.MySQLLimitPlugin");
pluginConfiguration.setConfigurationType("com.zzg.mybatis.generator.plugins.MySQLLimitPlugin");
context.addPluginConfiguration(pluginConfiguration);
}
context.addPluginConfiguration(pluginConfiguration);
}
context.setTargetRuntime("MyBatis3");

Expand Down

0 comments on commit 52d8643

Please sign in to comment.