Commit 61447fd61b79fb597c3987d6cea7c277cab678aa
1 parent
1422b405
Exists in
master
fix a bug about upgrade mysql conn jar version 8.0
Showing
4 changed files
with
7 additions
and
3 deletions
Show diff stats
build.gradle
@@ -55,7 +55,7 @@ uploadArchives { | @@ -55,7 +55,7 @@ uploadArchives { | ||
55 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) | 55 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) |
56 | } | 56 | } |
57 | pom.project { | 57 | pom.project { |
58 | - version '1.2.20' | 58 | + version '1.2.22' |
59 | artifactId ARTIFACT_Id | 59 | artifactId ARTIFACT_Id |
60 | groupId GROUP_ID | 60 | groupId GROUP_ID |
61 | packaging TYPE | 61 | packaging TYPE |
build/classes/java/main/com/taover/codegenerate/bazhuayun/GenerateCode.class
No preview for this file type
src/main/java/com/taover/codegenerate/bazhuayun/GenerateCode.java
@@ -21,7 +21,11 @@ import freemarker.template.Template; | @@ -21,7 +21,11 @@ import freemarker.template.Template; | ||
21 | public class GenerateCode { | 21 | public class GenerateCode { |
22 | public static void main(String args[]){ | 22 | public static void main(String args[]){ |
23 | try { | 23 | try { |
24 | - generateEntity("com.taover.wxorder", "ecs_shippings_regions", "D:"+File.separator+"dblist", "127.0.0.1", "3306", "tylife", "lexi365", "tylife", false); | 24 | + //generateEntity("com.taover.wxorder", "ecs_shippings_regions", "D:"+File.separator+"dblist", "127.0.0.1", "3306", "tylife", "lexi365", "tylife", false); |
25 | + GenerateCode.generateEntity("com.taover.bazhuayun.wxorder", | ||
26 | + "common_region", | ||
27 | + "D:\\dblist\\", | ||
28 | + "121.42.142.102", "3306", "dev", "taover02", "bzyun_wxorder", true); | ||
25 | } catch (Exception e) { | 29 | } catch (Exception e) { |
26 | e.printStackTrace(); | 30 | e.printStackTrace(); |
27 | } | 31 | } |
src/main/java/com/taover/codegenerate/core/MysqlTableColumn.java
@@ -454,7 +454,7 @@ public class MysqlTableColumn { | @@ -454,7 +454,7 @@ public class MysqlTableColumn { | ||
454 | try { | 454 | try { |
455 | 455 | ||
456 | DatabaseMetaData dbmd = Conn.getMetaData(); | 456 | DatabaseMetaData dbmd = Conn.getMetaData(); |
457 | - ResultSet rs = dbmd.getColumns(null, schameName, sTableName, likeStr); | 457 | + ResultSet rs = dbmd.getColumns(schameName, schameName, sTableName, likeStr); |
458 | if (rs == null) { | 458 | if (rs == null) { |
459 | System.out.println("The Result Set is null "); | 459 | System.out.println("The Result Set is null "); |
460 | return null; | 460 | return null; |