源文件
适用于 ✅ 开源版 ✅ 专业版 ✅ 企业版
从 jOOQ 3.13 开始,如果可用,代码生成器将为视图生成源代码。此功能可以使用以下方式关闭:
-
sources:可以全局关闭所有类型的源代码的生成 -
sourcesOnViews:可以关闭在视图上生成源代码
控制这些注解生成的标志是
XML(独立和 Maven)
编程方式
Gradle (Kotlin)
Gradle (Groovy)
Gradle(第三方)
<configuration>
<generator>
<generate>
<sources>true</sources>
<sourcesOnViews>true</sourcesOnViews>
</generate>
</generator>
</configuration>
有关更多详细信息,请参阅 configuration XSD、独立代码生成和 maven 代码生成。
new org.jooq.meta.jaxb.Configuration()
.withGenerator(
new Generate()
.withSources(true)
.withSourcesOnViews(true)
)
有关更多详细信息,请参阅 configuration XSD 和 编程式代码生成。
import org.jooq.meta.jaxb.*
configuration {
generator {
generate {
isSources = true
isSourcesOnViews = true
}
}
}
有关更多详细信息,请参阅 configuration XSD 和 gradle 代码生成。
configuration {
generator {
generate {
sources = true
sourcesOnViews = true
}
}
}
有关更多详细信息,请参阅 configuration 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.
反馈
您对此页面有任何反馈吗? 我们很乐意听取您的意见!