将数据库由Oracle切换到Mysql中,把数据库连接配置由xml中移到,启动时报错:
.: Table 'hibernate_example.all_sequences' doesn't exist
22:58:24,581 ERROR .:175 - could not get database metadata
.: Table 'hibernate_example.all_sequences' doesn't exist
at .newInstance0(Native Method)
at (:39)
at (:27)
at (:513)
at (:377)
at (:360)
at (:978)
at (:3887)
at (:3823)
at (:2435)
at (:2582)
at (:2526)
at (:2484)
at (:1446)
at .(:151)
at ..<init>(:69)
at ..<init>(:62)
at .(:170)
at .<init>(:373)
at (:1842)
at (:23)
at .invoke0(Native Method)
at (:39)
at (:25)
at (:597)
at $(:45)
at (:15)
at (:42)
at (:27)
at (:263)
at .(:68)
at .(:47)
at $(:231)
at $(:60)
at (:229)
at $000(:50)
at $(:222)
at (:300)
at ..(:49)
at (:38)
at (:467)
at (:683)
at (:390)
at (:197)
原因是在文件中没有将Oracle方言删除
<property name="">.Oracle10gDialect</property>