修复插件
This commit is contained in:
+1
-4
@@ -11,10 +11,7 @@ import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 生成service层和controller层
|
||||
* @author lsy
|
||||
*/
|
||||
|
||||
@Mojo(name = "generateSC")
|
||||
public class GeneratorServiceAndControllerMojo extends AbstractMojo {
|
||||
|
||||
|
||||
-4
@@ -12,10 +12,6 @@ import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 李守余
|
||||
* @author lsy
|
||||
*/
|
||||
@Mojo(name = "generateFiles")
|
||||
public class MybatisGeneratorExtendMojo extends AbstractMojo {
|
||||
|
||||
|
||||
+40
-2
@@ -6,8 +6,6 @@ import lombok.Setter;
|
||||
/**
|
||||
* mybatisGenerator所需要的数据库连接配置
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class Db {
|
||||
|
||||
private String driverLocation;
|
||||
@@ -19,4 +17,44 @@ public class Db {
|
||||
private String password;
|
||||
|
||||
private String driverClassName;
|
||||
|
||||
public String getDriverLocation() {
|
||||
return driverLocation;
|
||||
}
|
||||
|
||||
public void setDriverLocation(String driverLocation) {
|
||||
this.driverLocation = driverLocation;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getDriverClassName() {
|
||||
return driverClassName;
|
||||
}
|
||||
|
||||
public void setDriverClassName(String driverClassName) {
|
||||
this.driverClassName = driverClassName;
|
||||
}
|
||||
}
|
||||
|
||||
+72
-5
@@ -1,15 +1,10 @@
|
||||
package com.micro.fast.mybatis.generator.extend.pojo;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* mybatisGenerator的配置参数对象
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class MybatisGenerator {
|
||||
|
||||
private String pojoPackage;
|
||||
@@ -29,4 +24,76 @@ public class MybatisGenerator {
|
||||
private String primaryKeyType;
|
||||
|
||||
private String isOverWrite;
|
||||
|
||||
public String getPojoPackage() {
|
||||
return pojoPackage;
|
||||
}
|
||||
|
||||
public void setPojoPackage(String pojoPackage) {
|
||||
this.pojoPackage = pojoPackage;
|
||||
}
|
||||
|
||||
public String getDaoPackage() {
|
||||
return daoPackage;
|
||||
}
|
||||
|
||||
public void setDaoPackage(String daoPackage) {
|
||||
this.daoPackage = daoPackage;
|
||||
}
|
||||
|
||||
public String getTablesPrefix() {
|
||||
return tablesPrefix;
|
||||
}
|
||||
|
||||
public void setTablesPrefix(String tablesPrefix) {
|
||||
this.tablesPrefix = tablesPrefix;
|
||||
}
|
||||
|
||||
public Map<String, String> getTablesNameAndDoMainObjectsName() {
|
||||
return tablesNameAndDoMainObjectsName;
|
||||
}
|
||||
|
||||
public void setTablesNameAndDoMainObjectsName(Map<String, String> tablesNameAndDoMainObjectsName) {
|
||||
this.tablesNameAndDoMainObjectsName = tablesNameAndDoMainObjectsName;
|
||||
}
|
||||
|
||||
public String getServicePackage() {
|
||||
return servicePackage;
|
||||
}
|
||||
|
||||
public void setServicePackage(String servicePackage) {
|
||||
this.servicePackage = servicePackage;
|
||||
}
|
||||
|
||||
public String getControllerPackage() {
|
||||
return controllerPackage;
|
||||
}
|
||||
|
||||
public void setControllerPackage(String controllerPackage) {
|
||||
this.controllerPackage = controllerPackage;
|
||||
}
|
||||
|
||||
public String getServiceImplPackage() {
|
||||
return serviceImplPackage;
|
||||
}
|
||||
|
||||
public void setServiceImplPackage(String serviceImplPackage) {
|
||||
this.serviceImplPackage = serviceImplPackage;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyType() {
|
||||
return primaryKeyType;
|
||||
}
|
||||
|
||||
public void setPrimaryKeyType(String primaryKeyType) {
|
||||
this.primaryKeyType = primaryKeyType;
|
||||
}
|
||||
|
||||
public String getIsOverWrite() {
|
||||
return isOverWrite;
|
||||
}
|
||||
|
||||
public void setIsOverWrite(String isOverWrite) {
|
||||
this.isOverWrite = isOverWrite;
|
||||
}
|
||||
}
|
||||
|
||||
-2
@@ -16,8 +16,6 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* 生成service层controller层
|
||||
*
|
||||
* @author lsy
|
||||
*/
|
||||
public class GeneratorServiceController {
|
||||
|
||||
|
||||
+5
-5
@@ -8,8 +8,8 @@ mybatisGenerator.pojoPackage=pojoPackage
|
||||
mybatisGenerator.daoPackage=daoPackage
|
||||
mybatisGenerator.tablesPrefix=upms
|
||||
# service controllerËùÐèÒªµÄÅäÖÃ
|
||||
mybatisGenerator.servicePackage=
|
||||
mybatisGenerator.controllerPackage=
|
||||
mybatisGenerator.serviceImplPackage=
|
||||
mybatisGenerator.primaryKeyType=
|
||||
mybatisGenerator.isOverWrite=
|
||||
mybatisGenerator.servicePackage=daoPackage
|
||||
mybatisGenerator.controllerPackage=daoPackage
|
||||
mybatisGenerator.serviceImplPackage=daoPackage
|
||||
mybatisGenerator.primaryKeyType=daoPackage
|
||||
mybatisGenerator.isOverWrite=false
|
||||
Reference in New Issue
Block a user