I\'m trying to associate a list of function (whom Embeddable) within my Employee Entity and H2 seems unhappy with this saying that it expected an \"identifier\"
Turns out I was being dumb and named a column "Order". Wonder why H2 wasn't happy :upside_down:
Changed the variable name to something else and it worked!
try to put the ; before the " and test ?
I had the same problem with Spring and H2 database for tests, My entity had the field name "interval", I renamed to "inter" and resolved the problem.
So, these errors happen due to a sql reserved names in entities.
Got same issue with Order as entity. Changed table name to "orderz" and goes on.
in my case problem cause was incorrect syntax in insert statement problem :
insert into 'table name missing' (column names...) values(values...);
after adding table name
fix:
insert into 'table name specified' (column names...) values(values...);
some times trivial mistakes are hard to spot :)
I have the same problem while naming the fields: private String to
and private String from
, changed to ex. dayTo , dayFrom , and it worked.