We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PS:使用autoResultMap = true 解决了
autoResultMap = true
旧项目切mapper时发现了一个问题
曾经某个字段是个关键词 【order】结果生成的sql出现问题。
eg:
@Entity.Column(value = "order") Integer order;
上述的注解查询时会输出SQL 【SELECT order FROM xxx】 order 关键词 导致sql错误,这个可以理解
@Entity.Column(value = "`order`") Integer order;
上述的注解查询时会输出SQL 【SELECT `order` AS order FROM xxx 】 order 关键词 导致sql错误,个人觉得这个不应该加 AS 才对
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PS:使用
autoResultMap = true
解决了旧项目切mapper时发现了一个问题
曾经某个字段是个关键词 【order】结果生成的sql出现问题。
eg:
The text was updated successfully, but these errors were encountered: