<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <configurationxmlns="http://www.jooq.org/xsd/jooq-codegen-3.9.0.xsd"> <!-- Configure the database connection here --> <jdbc> <driver>com.mysql.jdbc.Driver</driver> <url>jdbc:mysql://127.0.0.1:3306/test</url> <user>root</user> <password></password> </jdbc>
<generator> <!-- java -classpath jooq-3.12.1.jar;jooq-meta-3.12.1.jar;jooq-codegen-3.12.1.jar;reactive-streams-1.0.3.jar;mysql-connector-java-5.1.41.jar;. org.jooq.codegen.GenerationTool mysql.xml --> <!-- The default code generator. You can override this one, to generate your own code style. Supported generators: - org.jooq.util.JavaGenerator - org.jooq.util.ScalaGenerator Defaults to org.jooq.util.JavaGenerator --> <name>org.jooq.codegen.JavaGenerator</name>
<database> <!-- The database marketType. The format here is: org.util.[database].[database]Database --> <name>org.jooq.meta.mysql.MySQLDatabase</name>
<!-- The database schema (or in the absence of schema support, in your RDBMS this can be the owner, user, database name) to be generated --> <inputSchema>test</inputSchema>
<!-- All elements that are generated from your schema (A Java regular expression. Use the pipe to separate several expressions) Watch out for case-sensitivity. Depending on your database, this might be important! --> <includes> user|money </includes>
<!-- All elements that are excluded from your schema (A Java regular expression. Use the pipe to separate several expressions). Excludes match before includes, i.e. excludes have a higher priority --> <excludes></excludes> </database>
<target> <!-- The destination package of your generated classes (within the destination directory) --> <packageName>com.git.hui.boot.jooq.dao</packageName>
<!-- The destination directory of your generated classes. Using Maven directory layout here --> <directory>../src/main/java</directory> </target>
Be the first person to leave a comment!