public static void main(String[] args) {
		try {
			List<String> list = MySQLConnect.getAllTables("show tables",
					"shoop");

			String packeName = "com.web.core";

			Iterator<String> it = list.iterator();
			List<ModelClassDesc> mcds = new ArrayList<ModelClassDesc>();
			while (it.hasNext()) {
				String tableName = it.next();
				TableDesc td = new TableDesc();
				td.setTableName(tableName);
				td.setTable(MySQLConnect.getColumns("DESC " + tableName));
				ModelClassDesc mcd = MySQLUtils.tableParseToMode(td);
				mcd.setTableName(tableName);
				mcds.add(mcd);
				mcd.setPackgeName(packeName);
				mcd.format();
//				FreeMarkerUtils.outModel(mcd);
				FreeMarkerUtils.outMapper(mcd);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}