|
15 | 15 | package apijson.jackson; |
16 | 16 |
|
17 | 17 | import apijson.RequestMethod; |
18 | | -import apijson.framework.APIJSONApplication; |
| 18 | +import apijson.jackson.javax.APIJSONApplication; |
19 | 19 | import apijson.orm.AbstractSQLConfig; |
20 | 20 | import apijson.orm.Join; |
21 | 21 | import apijson.orm.SQLConfig; |
@@ -72,18 +72,20 @@ public static <T> SQLConfig<T, Map<String, Object>, List<Object>> newSQLConfig2( |
72 | 72 | RequestMethod method, String table, String alias |
73 | 73 | , Map<String, Object> request, List<Join<T, Map<String, Object>, List<Object>>> joinList, boolean isProcedure |
74 | 74 | ) throws Exception { |
75 | | - return newSQLConfig(method, table, alias, request, joinList, isProcedure, new SimpleCallback<T>() {}); |
| 75 | + return newSQLConfig(method, table, alias, request, joinList, isProcedure, (SimpleCallback<T>) SIMPLE_CALLBACK); |
76 | 76 | } |
77 | 77 |
|
78 | 78 | public static class SimpleCallback<T> extends AbstractSQLConfig.SimpleCallback<T, Map<String, Object>, List<Object>> { |
79 | 79 |
|
80 | 80 | @Override |
81 | | - public SQLConfig<T, Map<String, Object>, List<Object>> getSQLConfig(RequestMethod method, String database, String schema |
82 | | - , String datasource, String table) { |
| 81 | + public SQLConfig<T, Map<String, Object>, List<Object>> getSQLConfig(RequestMethod method, String database |
| 82 | + , String datasource, String namespace, String catalog, String schema, String table) { |
83 | 83 | SQLConfig<T, Map<String, Object>, List<Object>> config = APIJSONApplication.createSQLConfig(); |
84 | 84 | config.setMethod(method); |
85 | 85 | config.setDatabase(database); |
86 | 86 | config.setDatasource(datasource); |
| 87 | + config.setNamespace(namespace); |
| 88 | + config.setCatalog(catalog); |
87 | 89 | config.setSchema(schema); |
88 | 90 | config.setTable(table); |
89 | 91 | return config; |
|
0 commit comments