Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZhangKuan
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
JIRA
JIRA
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
张宽
ZhangKuan
Commits
754385e4
Commit
754385e4
authored
Jun 14, 2017
by
22管33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改mysql和oracle的GeneratorConfig.xml,增加Generator配置的详细文档说明
parent
be5c7c11
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
295 additions
and
3 deletions
+295
-3
README.md
web/src/main/resources/mybatis/README.md
+287
-0
mysqlGeneratorConfig.xml
web/src/main/resources/mybatis/mysqlGeneratorConfig.xml
+1
-0
oracleGeneratorConfig.xml
web/src/main/resources/mybatis/oracleGeneratorConfig.xml
+7
-3
No files found.
web/src/main/resources/mybatis/README.md
0 → 100755
View file @
754385e4
This diff is collapsed.
Click to expand it.
web/src/main/resources/mybatis/mysqlGeneratorConfig.xml
View file @
754385e4
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
<table
tableName=
"%"
>
<table
tableName=
"%"
>
<property
name=
"useActualColumnNames"
<property
name=
"useActualColumnNames"
value=
"false"
/>
value=
"false"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
</table>
</context>
</context>
</generatorConfiguration>
</generatorConfiguration>
web/src/main/resources/mybatis/oracleGeneratorConfig.xml
View file @
754385e4
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
<jdbcConnection
driverClass=
"oracle.jdbc.driver.OracleDriver"
<jdbcConnection
driverClass=
"oracle.jdbc.driver.OracleDriver"
connectionURL=
"jdbc:oracle:thin:@haomo-studio.com:21521:xe"
connectionURL=
"jdbc:oracle:thin:@haomo-studio.com:21521:xe"
userId=
"
STEAM_MONITOR
"
userId=
"
HM_ORGANIZATION
"
password=
"
STEAM_MONITOR
"
/>
password=
"
123456
"
/>
<!-- 指定生成的类型为java类型,避免数据库中number等类型字段 -->
<!-- 指定生成的类型为java类型,避免数据库中number等类型字段 -->
<javaTypeResolver>
<javaTypeResolver>
...
@@ -45,8 +45,12 @@
...
@@ -45,8 +45,12 @@
value=
"false"
/>
value=
"false"
/>
</javaClientGenerator>
</javaClientGenerator>
<table
schema=
"
STEAM_MONITOR
"
tableName=
"%"
>
<table
schema=
"
HM_ORGANIZATION
"
tableName=
"%"
>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
</table>
<!--<table tableName="%">-->
<!--<property name="useActualColumnNames" value="false"/>-->
<!--</table>-->
</context>
</context>
</generatorConfiguration>
</generatorConfiguration>
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