hibernate的hbm文件生成问题

03-07-24 lzmch

我有一个基于informix的数据库,想根据该数据库生成hbm文件,不希望用手工

去写,因为表太多。

想问一下大家都用什么工具。我用middlegen,将所需要的参数改完后,运行ant后,报以下问题:

<p>[middlegen] Database URL:jdbc:informix-sqli://xx.xx.xx.xx:xxxx/my_database:INF
ORMIXSERVER=online
<p>[middlegen] No <table> elements specified. Reading all tables. This might take a
 while...

BUILD FAILED
file:E:/hibernate-2.0/mid/build.xml:195: middlegen.MiddlegenException: Middlegen
 successfully connected to the database, but couldn't find any tables. Perhaps t
he specified schema or catalog is wrong? -Or maybe there aren't any tables in th
e database at all?

Total time: 1 second
<p>

wys1978
2003-07-24 15:34

如果其他设置都是正确的,会不会是informix的jdbc driver不支持DatabaseMetaData里的getTables方法?导致不能获得表信息?

没有用过informix,是猜想。