Hibernate can not find my sequence, the exception is:
Caused by: org.postgresql.util.PSQLException:
ERROR: relation "default.menuitem_menuitem_id_seq" does not exist
OK, i try it myself and connect do database:
mydb=# CREATE SEQUENCE "default.menuitem_menuitem_id_seq" INCREMENT BY 1
MINVALUE 1 NO MAXVALUE START WITH 1 NO CYCLE;
ERROR: relation "default.menuitem_menuitem_id_seq" already exists
mydb=# select nextval('default.menuitem_menuitem_id_seq');
ERROR: relation "default.menuitem_menuitem_id_seq" does not exist
LINE 1: select nextval('default.menuitem_menuitem_id_seq');
Do i have a sequence and what is its name?
default?" ". Also,defaultis a reserved keyword both in ANSI SQL standard and PostgreSQL. See postgresql.org/docs/9.5/static/sql-keywords-appendix.html"default".menuite...