Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mybatis-generator-plugin
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Administrator
mybatis-generator-plugin
Commits
7d266d19
Commit
7d266d19
authored
May 28, 2018
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TableRenameConfigurationPlugin
parent
b25c6806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+2
-2
No files found.
README.md
View file @
7d266d19
...
@@ -657,7 +657,7 @@ public class Test {
...
@@ -657,7 +657,7 @@ public class Test {
项目中有时会遇到配置多数据源对应多业务的情况,这种情况下可能会出现不同数据源出现重复表名,造成异常冲突。
项目中有时会遇到配置多数据源对应多业务的情况,这种情况下可能会出现不同数据源出现重复表名,造成异常冲突。
该插件允许为表增加前缀,改变最终生成的Model、Mapper、Example类名以及xml名。
该插件允许为表增加前缀,改变最终生成的Model、Mapper、Example类名以及xml名。
>warning: 使用[Table重命名插件](12-table重命名插件)可以实现相同功能!
>warning: 使用[Table重命名插件](12-table重命名插件)可以实现相同功能!
>warning: 官方最新版本中已提供domainObjectRenamingRule支持(可以配合[表重命名配置插件](#18-表重命名配置插件)进行全局配置)
,以后请尽量使用官方支持
!
>warning: 官方最新版本中已提供domainObjectRenamingRule支持(可以配合[表重命名配置插件](#18-表重命名配置插件)进行全局配置)!
```
xml
```
xml
<table
tableName=
"tb"
>
<table
tableName=
"tb"
>
<domainObjectRenamingRule
searchString=
"^"
replaceString=
"DB1"
/>
<domainObjectRenamingRule
searchString=
"^"
replaceString=
"DB1"
/>
...
@@ -706,7 +706,7 @@ public class Test {
...
@@ -706,7 +706,7 @@ public class Test {
<property
name=
"searchString"
value=
"^"
/>
<property
name=
"searchString"
value=
"^"
/>
<property
name=
"replaceString"
value=
"DB1"
/>
<property
name=
"replaceString"
value=
"DB1"
/>
```
```
>warning: 官方最新版本中已提供domainObjectRenamingRule支持(可以配合[表重命名配置插件](#18-表重命名配置插件)进行全局配置)
,以后请尽量使用官方支持
!
>warning: 官方最新版本中已提供domainObjectRenamingRule支持(可以配合[表重命名配置插件](#18-表重命名配置插件)进行全局配置)!
```
xml
```
xml
<table
tableName=
"tb"
>
<table
tableName=
"tb"
>
<domainObjectRenamingRule
searchString=
"^T"
replaceString=
""
/>
<domainObjectRenamingRule
searchString=
"^T"
replaceString=
""
/>
...
...
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