首先:修改你的数据库配置文件,我用的是数据库是oracle,修改oracle.xml













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? 这个异常,在就是修改build.xml文件。搜索--(entity) 改成你自己的文件路径到oracle.xml。 搜索--(airline) 把它的值改成HibernateSample 搜索---(name=build.gen-src.dir) 指向你自己的输出地址:我的是../../src 在查找destination 修改






