| | |
| | | switch (this.sqlOsType) { |
| | | case MYSQL: |
| | | Class.forName("com.mysql.jdbc.Driver").newInstance(); |
| | | conn = DriverManager.getConnection("jdbc:mysql://"+url+"?useUnicode=true&characterEncoding=UTF-8&useSSL=false", username, password); |
| | | conn = DriverManager.getConnection("jdbc:mysql://"+url, username, password); |
| | | this.columns = getMysqlColumns(conn, table, true, sqlOsType); |
| | | break; |
| | | case SQL_SERVER: |
| | |
| | | boolean setTableId = true; |
| | | boolean setDateTimeFormat = true; |
| | | for (Column column : columns){ |
| | | // System.out.println("------==========>"); |
| | | // System.out.println(column.getName()); |
| | | // System.out.println(column.getType()); |
| | | if (column.getType().equals("Date")){ |
| | | entityIm.append("import java.text.SimpleDateFormat;\n") |
| | | .append("import java.util.Date;\n"); |