Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mysql-generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙长纪
mysql-generator
Commits
b87ed3d8
Commit
b87ed3d8
authored
Apr 01, 2019
by
孙长纪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加详细ModuleName属性设置问题
parent
18d6bacb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
fileHashes.bin
.gradle/4.6/fileHashes/fileHashes.bin
+0
-0
fileHashes.lock
.gradle/4.6/fileHashes/fileHashes.lock
+0
-0
README.md
README.md
+4
-1
No files found.
.gradle/4.6/fileHashes/fileHashes.bin
View file @
b87ed3d8
No preview for this file type
.gradle/4.6/fileHashes/fileHashes.lock
View file @
b87ed3d8
No preview for this file type
README.md
View file @
b87ed3d8
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
##使用方式
##使用方式
1.
首先根目录build.gradle文件中引入
1.
首先根目录build.gradle文件中引入
```
```
dependency("cn.com.duiba:mysql-generator:0.
0.1
")
dependency("cn.com.duiba:mysql-generator:0.
1.0
")
```
```
2.
在biz模块中引入
2.
在biz模块中引入
```
```
...
@@ -54,6 +54,9 @@ public class MysqlGeneratorTest {
...
@@ -54,6 +54,9 @@ public class MysqlGeneratorTest {
config
.
setTableName
(
TABLE_NAME
);
config
.
setTableName
(
TABLE_NAME
);
//表前缀,设置该值后生成的Entity,dao,daoImpl类不会以tb开头
//表前缀,设置该值后生成的Entity,dao,daoImpl类不会以tb开头
config
.
setTablePrefix
(
"tb"
);
config
.
setTablePrefix
(
"tb"
);
//设置生成的java文件存放的模块名,如果该代码执行和生成的代码在一个模块下则不需要设置,
//比如该执行代码在activity-center-deploy模块下,需要生成的entity,dao,daoImpl需要在activity-center-biz模块下,则需要设置ModuleName的值为activity-center-biz
//如果该执行代码在activity-center-biz下,并且生成的代码也在activity-center-biz下则不需要设置ModuleName的值
config
.
setModuleName
(
""
);
config
.
setModuleName
(
""
);
MybatisGenerator
.
genCode
(
config
);
MybatisGenerator
.
genCode
(
config
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment