Using Postgresql with Grails : Missing sequence or table: hibernate_sequence

前端 未结 2 1068
[愿得一人]
[愿得一人] 2021-02-11 06:44

I\'m having trouble with Grails 2.0 and Postgresql 9.1

I\'m trying to map an existing database, with sequential ids. However, even without creating any class in the doma

2条回答
  •  故里飘歌
    2021-02-11 07:04

    You probably have one of the entities using a sequence ID generator without any sequence name configured, and Hibernate thus uses the default sequence name: hibernate_sequence, but doesn't find it.

    Configure the sequence name (and use an existing sequence), or create the hibernate_sequence sequence in database, or don't use a sequence-based generator.

提交回复
热议问题