首页 > 解决方案 > 使用 gradle 生成 Schema

问题描述

 Jdbc getJdbc() {
        return new Jdbc().withDriver("com.mysql.cj.jdbc.Driver")
                .withUrl("jdbc:mysql://localhost/ztbl")
                .withUsername("")
               .withPassword("");
    }
    Database getDatabase() {
        return new Database()
                .withName("org.jooq.meta.mysql.MySQLDatabase")
                .withSchemata(
                        new SchemaMappingType().withInputSchema("ztbl").withOutputSchema("bpc"),
                        new SchemaMappingType().withInputSchema("tes_inbound").withOutputSchema("ib"),
                        new SchemaMappingType().withInputSchema("tesoutbound").withOutputSchema("ob"),
                        new SchemaMappingType().withInputSchema("tesob_calling").withOutputSchema("obcall"),
                        new SchemaMappingType().withInputSchema("hosting").withOutputSchema("cms"),
                        new SchemaMappingType().withInputSchema("hosting_new").withOutputSchema("cmm"),
                        new SchemaMappingType().withInputSchema("hosting_new").withOutputSchema("cmm")
                        //new SchemaMappingType().withInputSchema("stats").withOutputSchema("stats")
                );
    }

嗨,我是使用 gradle 生成 jooq 模式的新用户,以前我使用 maven 生成 jooq 模式,但目前我正在使用 gradle 转换,我不知道如何生成 jooq 模式。我的 genSchema 项目中有此代码。我正在尝试找到如何生成此架构的任何帮助。

标签: springgradlejooq

解决方案


推荐阅读