Hibernate: ORA-02289: sequence does not exist

org.hibernate.exception.SQLGrammarException: could not get next sequence value

Caused by: java.sql.SQLException: ORA-02289: sequence does not exist

 

 

一不小心,被这个异常搞了几个小时,总以为数据库的问题,原来是hibernate!

 


  

 

 

应该改成:


  
             SEQ_hibernate  
      

 

Hibernate需要通过配置文件指明所使用的Sequence,SEQ_hibernate是在oracle中已经创建好的sequence

你可能感兴趣的:(Java)