babyfish-ct / jimmer

A revolutionary ORM framework for both java and kotlin.
Apache License 2.0
878 stars 89 forks source link

[Feature Request] 当mysql表名命中的数据库关键字时(例如group表名),生成的sql执行报错 #670

Closed xiaoquanidea closed 2 months ago

xiaoquanidea commented 2 months ago

我在mysql数据库中有一张表叫group,在另外一个entity中引用了Group实体

image

,生成的sql触发了mysql的关键字group,查询报错: cd8977b997349206b7c98e092dcd799b ,我修改了Group表上的注解@Table("group"),也启动报错,因为我开启了数据库约束校验,关闭校验之后查询正常。

大佬给出的建议:

image
babyfish-ct commented 2 months ago

Try 0.8.177

xiaoquanidea commented 2 months ago

Try 0.8.177

非常感谢大佬