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

前端 未结 7 1275
广开言路
广开言路 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条回答
  •  Happy的楠姐
    2020-12-14 20:22

    You can just use @GeneratedValue(strategy = GenerationType.TABLE) if you just need to be able to auto increment the value for attributes such as some ID which is primary key of your table. It worked for me. Hope it helps.

提交回复
热议问题