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

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

    You can change .identity by .sequence and it will work:

    GeneratedValue(strategy=GenerationType.SEQUENCE)
    

提交回复
热议问题