예제 #1
0
  public static void main(String[] args) throws IOException, ParseException {
    SQLToAppData sqlToAppData =
        new SQLToAppData(
            "D:\\project\\torque\\src\\generator\\src\\test\\org\\apache\\torque\\engine\\database\\transform\\mysql.sql");

    Database db = sqlToAppData.execute();
    // assertTrue(db.getTables().size() > 0);
    Table course = db.getTable("ab");
    System.out.println(course);
    // assertTrue(course != null);
  }
예제 #2
0
  /** Class to test for void SQLToAppData(String, String) */
  public void testMySql() throws Exception {
    //        SQLToAppData sqlToAppData = new SQLToAppData(
    //                "src/test/org/apache/torque/engine/database/transform/mysql.sql",
    //                "mysql");
    SQLToAppData sqlToAppData =
        new SQLToAppData("src/com/frameworkset/orm/engine/transform/mysql.sql");

    Database db = sqlToAppData.execute();
    assertTrue(db.getTables().size() > 0);
    Table course = db.getTable("course");
    System.out.println(course);
    assertTrue(course != null);
  }