hibernate h2 embeddable list expected “identifier”

前端 未结 7 1997
别那么骄傲
别那么骄傲 2021-01-17 16:31

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\"

7条回答
  •  無奈伤痛
    2021-01-17 17:11

    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.

提交回复
热议问题