Languages

Spring + Hibernate + H2 - error - h2 Caused by: org.h2.jdbc.JdbcSQLException: Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:

6 points
Asked by:
Lennie-S
439

How to fix this error:

This error occurs when I try to save new entity with repository:

My entity:

Repository:

 

1 answer
2 points
Answered by:
Root-ssh
178180

Fix for this problem:

In UserEntity change:

to:

Entire entity fixed:

 

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join