hibernate could not get next sequence value

后端 未结 11 1445
夕颜
夕颜 2020-11-29 23:32

i have gwt application connect to postgres DB at the backend, and a java class \'Judgement\' mapping the table \'judgements\' in DB, when i tried to persistent a judgement i

11条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 00:20

    I got same error before, type this query in your database CREATE SEQUENCE hibernate_sequence START WITH 1 INCREMENT BY 1 NOCYCLE;

    that's work for me, good luck ~

提交回复
热议问题