Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-generator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
余保谷
ydl-generator
Commits
d0f486ad
Commit
d0f486ad
authored
Apr 09, 2019
by
flying-cattle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mybatis-dsc-generator,升级到2.1.0
parent
f701cc43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
pom.xml
pom.xml
+1
-1
TestMain.java
src/main/java/com/github/mybatis/fl/test/TestMain.java
+21
-21
No files found.
pom.xml
View file @
d0f486ad
...
...
@@ -5,7 +5,7 @@
<groupId>
com.github.flying-cattle
</groupId>
<artifactId>
mybatis-dsc-generator
</artifactId>
<version>
2.
0
.0.RELEASE
</version>
<version>
2.
1
.0.RELEASE
</version>
<packaging>
jar
</packaging>
<name>
mybatis-dsc-generator
</name>
...
...
src/main/java/com/github/mybatis/fl/test/TestMain.java
View file @
d0f486ad
...
...
@@ -10,27 +10,27 @@ import com.github.mybatis.fl.util.MySqlToJavaUtil;
public
class
TestMain
{
//基础信息
public
static
final
String
PROJECT
=
"
qixingbao-show
"
;
public
static
final
String
AUTHOR
=
"BianP"
;
public
static
final
String
PROJECT
=
"
user_center
"
;
public
static
final
String
AUTHOR
=
"BianP
eng
"
;
public
static
final
String
VERSION
=
"V1.0"
;
//数据库连接信息
public
static
final
String
URL
=
"jdbc:mysql://127.0.0.1:3306/
qixingbao?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=true
"
;
public
static
final
String
URL
=
"jdbc:mysql://127.0.0.1:3306/
earn_knife?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=true&serverTimezone=UTC
"
;
public
static
final
String
NAME
=
"root"
;
public
static
final
String
PASSWORD
=
"
123456
"
;
public
static
final
String
DATABASE
=
"
qixingbao
"
;
public
static
final
String
PASSWORD
=
"
pwd2020
"
;
public
static
final
String
DATABASE
=
"
earn_knife
"
;
//类信息
public
static
final
String
TABLE
=
"
product
"
;
public
static
final
String
CLASSNAME
=
"
Product
"
;
public
static
final
String
CLASSCOMMENT
=
"
产品
"
;
public
static
final
String
TIME
=
"201
8年7月5
日"
;
public
static
final
String
TABLE
=
"
user
"
;
public
static
final
String
CLASSNAME
=
"
User
"
;
public
static
final
String
CLASSCOMMENT
=
"
用户
"
;
public
static
final
String
TIME
=
"201
9年4月9
日"
;
public
static
final
String
AGILE
=
new
Date
().
getTime
()+
""
;
//路径信息
public
static
final
String
ENTITY_URL
=
"com.
qixingbao.show
.entity"
;
public
static
final
String
DAO_URL
=
"com.
qixingbao.show
.dao"
;
public
static
final
String
XML_URL
=
"com.
qixingbao.show
.dao.impl"
;
public
static
final
String
SERVICE_URL
=
"com.
qixingbao.show
.service"
;
public
static
final
String
SERVICE_IMPL_URL
=
"com.
qixingbao.show
.service.impl"
;
public
static
final
String
CONTROLLER_URL
=
"com.
qixingbao.show
.webApi"
;
public
static
final
String
ENTITY_URL
=
"com.
xin.usercenter
.entity"
;
public
static
final
String
DAO_URL
=
"com.
xin.usercenter
.dao"
;
public
static
final
String
XML_URL
=
"com.
xin.usercenter
.dao.impl"
;
public
static
final
String
SERVICE_URL
=
"com.
xin.usercenter
.service"
;
public
static
final
String
SERVICE_IMPL_URL
=
"com.
xin.usercenter
.service.impl"
;
public
static
final
String
CONTROLLER_URL
=
"com.
xin.usercenter
.webApi"
;
public
static
void
main
(
String
[]
args
)
{
...
...
@@ -41,12 +41,12 @@ public class TestMain {
bi
.
setEntityComment
(
CLASSCOMMENT
);
try
{
bi
=
EntityInfoUtil
.
getInfo
(
bi
);
String
aa1
=
Generator
.
createEntity
(
"E:\\
A-ZM-work\\work_qxb2\\qxbplatform\\qixingbao-show\\src\\main\\java
\\"
,
bi
).
toString
();
String
aa2
=
Generator
.
createDao
(
"E:\\
A-ZM-work\\work_qxb2\\qxbplatform\\qixingbao-show\\src\\main\\java
\\"
,
bi
).
toString
();
String
aa3
=
Generator
.
createDaoImpl
(
"E:\\
A-ZM-work\\work_qxb2\\qxbplatform\\qixingbao-show\\src\\main\\java
\\"
,
bi
).
toString
();
String
aa4
=
Generator
.
createService
(
"E:\\
A-ZM-work\\work_qxb2\\qxbplatform\\qixingbao-show\\src\\main\\java
\\"
,
bi
).
toString
();
String
aa5
=
Generator
.
createServiceImpl
(
"E:\\
A-ZM-work\\work_qxb2\\qxbplatform\\qixingbao-show\\src\\main\\java
\\"
,
bi
).
toString
();
String
aa6
=
Generator
.
createController
(
"E:\\
A-ZM-work\\work_qxb2\\qxbplatform\\qixingbao-show\\src\\main\\java
\\"
,
bi
).
toString
();
String
aa1
=
Generator
.
createEntity
(
"E:\\
b_test_work
\\"
,
bi
).
toString
();
String
aa2
=
Generator
.
createDao
(
"E:\\
b_test_work
\\"
,
bi
).
toString
();
String
aa3
=
Generator
.
createDaoImpl
(
"E:\\
b_test_work
\\"
,
bi
).
toString
();
String
aa4
=
Generator
.
createService
(
"E:\\
b_test_work
\\"
,
bi
).
toString
();
String
aa5
=
Generator
.
createServiceImpl
(
"E:\\
b_test_work
\\"
,
bi
).
toString
();
String
aa6
=
Generator
.
createController
(
"E:\\
b_test_work
\\"
,
bi
).
toString
();
System
.
out
.
println
(
aa1
);
System
.
out
.
println
(
aa2
);
...
...
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