Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-radaraccess-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 98bc6bf4
authored
Jan 29, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化逆向工程生成代码逻辑
1 parent
3d87cfad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
platform-radaraccess/src/test/resources/generatorConfig.xml
platform-radaraccess/src/test/resources/generatorConfig.xml
View file @
98bc6bf
...
...
@@ -37,9 +37,9 @@
</commentGenerator>
<!-- jdbc连接-->
<jdbcConnection
driverClass=
"com.mysql.cj.jdbc.Driver"
connectionURL=
"jdbc:mysql://192.168.
0.39:3306/seata_storage
?serverTimeZone=Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false"
userId=
"
root
"
password=
"1
23456
"
>
connectionURL=
"jdbc:mysql://192.168.
3.227:3306/platform_charging
?serverTimeZone=Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false"
userId=
"
dev_admin
"
password=
"1
f7e1ed2
"
>
<!--防止生成其他库同名表-->
<property
name=
"nullCatalogMeansCurrent"
value=
"true"
/>
</jdbcConnection>
...
...
@@ -50,7 +50,7 @@
</javaTypeResolver>
<!-- 生成实体类地址 -->
<javaModelGenerator
targetPackage=
"cn.com.
payu
.modules.entity"
targetProject=
"src/main/java"
>
<javaModelGenerator
targetPackage=
"cn.com.
glsx.radaraccess
.modules.entity"
targetProject=
"src/main/java"
>
<!-- 是否让schema作为包的后缀 -->
<property
name=
"enableSubPackages"
value=
"true"
/>
<!-- 从数据库返回的值去掉前后空格 -->
...
...
@@ -63,11 +63,13 @@
</sqlMapGenerator>
<!-- 生成接口dao type="ANNOTATEDMAPPER",生成Java Model 和基于注解的Mapper对象 type="MIXEDMAPPER",生成基于注解的Java Model 和相应的Mapper对象 type="XMLMAPPER",生成SQLMap XML文件和独立的Mapper接口 -->
<javaClientGenerator
targetPackage=
"cn.com.
payu
.modules.mapper"
targetProject=
"src/main/java"
type=
"XMLMAPPER"
>
<javaClientGenerator
targetPackage=
"cn.com.
glsx.radaraccess
.modules.mapper"
targetProject=
"src/main/java"
type=
"XMLMAPPER"
>
<property
name=
"enableSubPackages"
value=
"false"
/>
</javaClientGenerator>
<!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 -->
<table
tableName=
"t_storage"
domainObjectName=
"Storage"
enableCountByExample=
"false"
enableUpdateByExample=
"false"
enableDeleteByExample=
"false"
enableSelectByExample=
"false"
selectByExampleQueryId=
"false"
/>
<table
tableName=
"t_storage"
domainObjectName=
"Storage"
enableCountByExample=
"false"
enableUpdateByExample=
"false"
enableDeleteByExample=
"false"
enableSelectByExample=
"false"
selectByExampleQueryId=
"false"
/>
</context>
</generatorConfiguration>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment