|
|
|
@ -396,30 +396,30 @@ public class SpringBootCallable implements Callable {
|
|
|
|
|
for (Table table : md.getTables()) {
|
|
|
|
|
ctx.put("table", table);
|
|
|
|
|
|
|
|
|
|
if (table.getCreate() != null && table.getCreate()) {
|
|
|
|
|
if (table.getCreate()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "CreateRequest" + ".java"), option + "/java/req/createRequestClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getDelete() != null && table.getDelete()) {
|
|
|
|
|
if (table.getDelete()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "DeleteRequest" + ".java"), option + "/java/req/deleteRequestClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getUpdate() != null && table.getUpdate()) {
|
|
|
|
|
if (table.getUpdate()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "UpdateRequest" + ".java"), option + "/java/req/updateRequestClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getFind() != null && table.getFind()) {
|
|
|
|
|
if (table.getFind()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "FindRequest" + ".java"), option + "/java/req/findRequestClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getGet() != null && table.getGet()) {
|
|
|
|
|
if (table.getGet()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "GetRequest" + ".java"), option + "/java/req/getRequestClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getSearch() != null && table.getSearch()) {
|
|
|
|
|
if (table.getSearch()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "SearchRequest" + ".java"), option + "/java/req/searchRequestClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
if (table.getGetAll() != null && table.getGetAll()) {
|
|
|
|
|
if (table.getGetAll()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "GetAllRequest" + ".java"), option + "/java/req/getAllRequestClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -453,30 +453,30 @@ public class SpringBootCallable implements Callable {
|
|
|
|
|
for (Table table : md.getTables()) {
|
|
|
|
|
ctx.put("table", table);
|
|
|
|
|
|
|
|
|
|
if (table.getCreate() != null && table.getCreate()) {
|
|
|
|
|
if (table.getCreate()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "CreateResponse" + ".java"), option + "/java/rsp/createResponseClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getDelete() != null && table.getDelete()) {
|
|
|
|
|
if (table.getDelete()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "DeleteResponse" + ".java"), option + "/java/rsp/deleteResponseClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getUpdate() != null && table.getUpdate()) {
|
|
|
|
|
if (table.getUpdate()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "UpdateResponse" + ".java"), option + "/java/rsp/updateResponseClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getFind() != null && table.getFind()) {
|
|
|
|
|
if (table.getFind()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "FindResponse" + ".java"), option + "/java/rsp/findResponseClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getGet() != null && table.getGet()) {
|
|
|
|
|
if (table.getGet()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "GetResponse" + ".java"), option + "/java/rsp/getResponseClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (table.getSearch() != null && table.getSearch()) {
|
|
|
|
|
if (table.getSearch()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "SearchResponse" + ".java"), option + "/java/rsp/searchResponseClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
if (table.getGetAll() != null && table.getGetAll()) {
|
|
|
|
|
if (table.getGetAll()) {
|
|
|
|
|
freeMarkerManager.outputTemp(new File(root.getAbsolutePath(), Tool.lineToClassName(table.getTableName()) + "GetAllResponse" + ".java"), option + "/java/rsp/getAllResponseClass.ftl", ctx);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|