我使用sybase ASE作为我的数据库。当我尝试使用jooq生成代码时,它显示下面的warning.but没有完成代码生成。任何帮助都要提前感谢!
//--------------------------------warning-----------------------------------//
Jul 19, 2016 5:49:17 PM org.jooq.tools.JooqLogger warn
WARNING: No schemata were loaded : Please check your connection settings, and whether your database (and your database version!) is really supported by jOOQ. Also, check the case-sensitivity in your configured <inputSchema/> elements : [xfuse]
Jul 19, 2016 5:49:17 PM org.jooq.tools.JooqLogger info
INFO: Generating schemata : Total: 0-->配置文件-><->
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.8.0.xsd">
<jdbc>
<driver>com.sybase.jdbc3.jdbc.SybDriver</driver>
<url>jdbc:sybase:Tds:192.168.xx.xx:5000/xfuse</url>
<user>xxx</user>
<password>xxx</password>
</jdbc>
<generator>
<database>
<name>org.jooq.util.ase.ASEDatabase</name>
<inputSchema>xfuse</inputSchema>
<includes>.*</includes>
<excludes></excludes>
</database>
<target>
<packageName>com.gen</packageName>
<directory>E:/RD/Test/codegeneration/output</directory>
</target>
</generator>
</configuration>发布于 2016-07-21 23:13:47
从您的JDBC URL,我认为您可能混淆了数据库名称和模式名称。
jdbc:sybase:Tds:192.168.xx.xx:5000/xfuse
// database name ------------------^^^^^您应该向<inputSchema>提供的是您的模式名称。如果您不确定您的模式名称是什么,那么在Sybase中它可能是dbo。
为了确保这一点,您还可以移除<inputSchema/>元素并运行代码生成器。这样,它将为xfuse数据库中的所有模式生成代码。
https://stackoverflow.com/questions/38458960
复制相似问题