Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 JPA 设置中有一个名为“GROUP”的实体。现在,当我尝试执行 JPA 查询时遇到问题,例如“从 Group group_ 中选择 count(group_.id)”。
JPA 认为这是一次错误的 GROUP BY 尝试并抱怨。有没有办法可以逃脱“组”,或者我必须重命名我的表?
谢谢!
请不要这样做!
将您的表格重命名为其他名称,从长远来看,您会感谢我的。不要对表名或列名使用任何保留字!
将其命名为 EmployeeGroup、JobGroup 或 ObjectGroup 等...