Topic: [提问] hibernate问题.

  Print this page

1.[提问] hibernate问题. Copy to clipboard
Posted by: hanson888
Posted on: 2004-11-10 16:18

我在配置Middlegen hibernate时出现的错误

D:\middlegen\build.xml:148: middlegen.MiddlegenException: Middlegen successfully connected to the database, but couldn't find any tables. Perhaps the specified schema or catalog is
wrong? -Or maybe there aren't any tables in the database at all?

配置的是ORACLE.XML
oracle version: oracle9i.
请指教.

2.Re:[提问] hibernate问题. [Re: hanson888] Copy to clipboard
Posted by: glistar
Posted on: 2004-11-10 16:54

<middlegen
appname="${name}"
prefsdir="${src.dir}"
gui="${gui}"
databaseurl="${database.url}"
initialContextFactory="${java.naming.factory.initial}"
providerURL="${java.naming.provider.url}"
datasourceJNDIName="${datasource.jndi.name}"
driver="${database.driver}"
username="${database.userid}"
password="${database.password}"
schema="${database.schema}"
catalog="${database.catalog}"
>
去掉最后两个参数:
schema="${database.schema}"
catalog="${database.catalog}"
试试看!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923