Using reserved JPQL keywords with JPA

后端 未结 2 947
礼貌的吻别
礼貌的吻别 2020-12-18 01:43

I have an entity class called \"Group\" and NetBeans warns me \"The entity table name is a reserved Java Persistence QL keyword\".

A similar case would be the use of

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-18 02:10

    You don't have to rename the class - and you shouldn't - the name you have chosen reflects your domain in the best way, and you should not change it because of tool or framework limitations, in case the tool/framework provides a way to avoid the "clash". JPA provides such a way.

提交回复
热议问题