hibernate tool连接oracle生成pojo和xml文件无法查询表解决办法

需要在hibernate的配置文件中增加


        <property name="hibernate.default_schema">[username]</property>
        <property name="hibernate.default_catalog">[username]</property>

 

其中[username]是用户名称,在生成的  SQL  中,将给定的  schema/
tablespace 附加于非全限定名的表名上。

posted @ 2014-03-16 21:24  Zane Young  阅读(316)  评论(0编辑  收藏  举报