码迷,mamicode.com
首页 > 其他好文 > 详细

H2 JOOQ CodeGenerator

时间:2017-11-03 12:51:35      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:director   3.2   conf   geeks   http   org   generator   class   pass   

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

标签:director   3.2   conf   geeks   http   org   generator   class   pass   

原文地址:http://www.cnblogs.com/jpit/p/7777492.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!