Commit 4a21ba78 authored by Quxl's avatar Quxl

x

parent f0da7c0a
...@@ -68,6 +68,7 @@ public class MysqlTo { ...@@ -68,6 +68,7 @@ public class MysqlTo {
List<String> paramyKeys = new ArrayList<String>(); List<String> paramyKeys = new ArrayList<String>();
while(set.next()) { while(set.next()) {
String columnName = set.getString("COLUMN_NAME").trim(); String columnName = set.getString("COLUMN_NAME").trim();
if(!names.contains(columnName)) {
String columnType = set.getString("COLUMN_TYPE").trim(); String columnType = set.getString("COLUMN_TYPE").trim();
String columnComment = set.getString("COLUMN_COMMENT"); String columnComment = set.getString("COLUMN_COMMENT");
String constraintName = set.getString("CONSTRAINT_NAME"); String constraintName = set.getString("CONSTRAINT_NAME");
...@@ -78,6 +79,7 @@ public class MysqlTo { ...@@ -78,6 +79,7 @@ public class MysqlTo {
paramyKeys.add(columnName); paramyKeys.add(columnName);
} }
} }
}
ReverseUtil.parseEntity(pkg_name, author, root, name, comment, paramyKeys, names, types, comments); ReverseUtil.parseEntity(pkg_name, author, root, name, comment, paramyKeys, names, types, comments);
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment