生成的同义词
适用于 ✅ 开源版 ✅ 专业版 ✅ 企业版
数据库中的每个同义词都会生成一个 org.jooq.Synonym
实现,如下所示
public final class Synonyms { // Every synonym generates a member public static final Synonym S_BOOK = Internal.createSynonym(Public.PUBLIC, DSL.name("S_BOOK"), Book.BOOK, DSL.comment("")); }
XML(独立和 Maven)
编程方式
Gradle (Kotlin)
Gradle (Groovy)
Gradle(第三方)
<configuration> <generator> <generate> <!-- Generate the Synonyms class --> <synonyms>true</synonyms> </generate> </generator> </configuration>
有关更多详细信息,请参阅 配置 XSD、独立代码生成和 maven 代码生成。
new org.jooq.meta.jaxb.Configuration() .withGenerator( new Generate() // Generate the Synonyms class .withSynonyms(true) )
import org.jooq.meta.jaxb.* configuration { generator { generate { // Generate the Synonyms class isSynonyms = true } } }
有关更多详细信息,请参阅 配置 XSD 和 gradle 代码生成。
configuration { generator { generate { // Generate the Synonyms class synonyms = true } } }
有关更多详细信息,请参阅 配置 XSD 和 gradle 代码生成。
// The jOOQ-codegen-gradle plugin has been introduced in version 3.19. // Please use the official plugin instead of the third party plugin that was recommended before.
反馈
您对此页面有任何反馈吗? 我们很乐意听到您的反馈!