Missing sequence or table: hibernate_sequence

后端 未结 8 2342
礼貌的吻别
礼貌的吻别 2020-12-14 15:49

I am new to hibernate and postgres. Actually I am trying to map potgres database using Hibernate. This is my table stucture in postgresql

CREATE TABLE employ         


        
8条回答
  •  忘掉有多难
    2020-12-14 16:42

    Apart from creating the table hibernate_sequence which has a column next_val you can also set quarkus.hibernate-orm.database.generation = drop-and-create. Note this will delete all the record in you database.

提交回复
热议问题