警告: SQL Error: 604, SQLState: 60000
2015-7-9 20:31:44 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: ORA-00604: 递归 SQL 级别 1 出现错误
ORA-00942: 表或视图不存在
2015-7-9 20:31:44 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
严重: could not complete schema update
org.hibernate.exception.GenericJDBCException: could not get table metadata: SSH
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(DatabaseMetadata.java:100)
at org.hibernate.cfg.Configuration.generateSchemaUpdateScript(Configuration.java:878)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:140)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:314)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
“表或视图不存在”,,,提示这么明确,这个问题好解决吧
org.hibernate.exception.GenericJDBCException: could not get table metadata: SSH
配置文件中看看是否有这个配置<!-- hibernate.hbm2ddl.auto=update -->,如果有,注释
把日期全部转换成字符串试试呢
如果用的Oracle数据库的话,需要注意如果数据库名是写的话,在hibernate的实体类的配置的table的值要以单引号括起来,或者把Oracle数据库的表名改为大写的