org.hibernate.dialect.OracleDialect does not support identity key generation

前端 未结 7 1271
广开言路
广开言路 2020-12-14 19:25

I was trying to import a sample project in to eclipse and was facing the below given error up on running the application.

Caused by: org.hibernate.MappingExc         


        
7条回答
  •  自闭症患者
    2020-12-14 20:07

    The reason for exception is:

    Hibernate expects from underlying database to provide an auto increment feature for a given property, in your case it's id. IOW, Oracle(your case) should support auto increment feature for a field. Oracle started to provide auto increment feature with 12c version and, as your version was less, you got that exception .

提交回复
热议问题