java - jOOQ code generation with postgresql does not generate anything -
when run jooq code generation against database, says there 0 tables, , generates no code.
first, let's see schemas in database. if log in using same credentials giving jooq, same database, , run \dn
(as per https://dba.stackexchange.com/a/40054/115875) output:
list of schemas name | owner --------+---------- public | postgres (1 row)
and running \dt
, tables:
list of relations schema | name | type | owner --------+------+-------+------- public | user | table | me06 (1 row)
just 1 user table , in 1 schema, 'public'.
next, here jooq configuration:
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.9.0.xsd"> <jdbc> <driver>org.postgresql.driver</driver> <url>jdbc:postgresql://localhost:5432/webapi</url> <user>webapi</user> <password>password</password> </jdbc> <generator> <name>org.jooq.util.javagenerator</name> <database> <name>org.jooq.util.postgres.postgresdatabase</name> <inputschema>public</inputschema> <includes>.*</includes> <excludes></excludes> </database> <target> <packagename>eden.martin.webapi.models</packagename> <directory>c:\users\martin\code\web-api\app\src\main\java\eden\martin\webapi\models</directory> </target> </generator>
however, when run it, output:
info: tables fetched : 0 (0 included, 0 excluded) jan 26, 2017 11:16:07 org.jooq.tools.jooqlogger info
(full log in gist: https://gist.github.com/martineden/67c1df5f99f61355fc2833b996d49268)
what going wrong?
Comments
Post a Comment