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

前端 未结 7 1292
广开言路
广开言路 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:25

    I also had the same problem I am using OracleDB, I tried Identity, GenerateSequence and nothing gave me the solution. Until I had to change the dialect in my application properties. For some reason the dialect was not generating the correct sequence, which is why I decided to use a different dialect for my Oracle12c case.

    Before:

    spring.jpa.database-platform = org.hibernate.dialect.Oracle10gDialect
    

    Then:

    spring.jpa.database-platform = org.hibernate.dialect.Oracle12cDialect
    

    You could verify that you have value in the dialect of your connection maybe and changing it to a different version will be resolved like me.

提交回复
热议问题