H2 JOOQ CodeGenerator
Posted jis117
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了H2 JOOQ CodeGenerator相关的知识,希望对你有一定的参考价值。
https://www.javacodegeeks.com/2014/02/using-jooq-with-spring-code-generation.html
<plugin> <groupId>org.jooq</groupId> <artifactId>jooq-codegen-maven</artifactId> <version>3.2.2</version> <executions> <execution> <id>generate-h2</id> <phase>generate-sources</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>${h2.version}</version> </dependency> </dependencies> <configuration> <jdbc> <driver>${db.driver}</driver> <url>${db.url}</url> <user>${db.username}</user> <password>${db.password}</password> </jdbc> <generator> <database> <name>${jooq.generator.db.dialect}</name> <includes>.*</includes> <excludes></excludes> <inputSchema>PUBLIC</inputSchema> </database> <generate> <records>true</records> </generate> <target> <packageName>net.petrikainulainen.spring.jooq.todo.db</packageName> <directory>target/generated-sources/jooq</directory> </target> </generator> </configuration> </plugin>
以上是关于H2 JOOQ CodeGenerator的主要内容,如果未能解决你的问题,请参考以下文章
带有 h2 和 jooq 的 JdbcSQLSyntaxErrorException
通过 gradle 配置 JOOQ Codegen 时找不到 H2 驱动程序
JOOQ 强制类型无法通过 JPADatabase 代码生成生成 NUMERIC SQL 数据类型