简体   繁体   English

我该如何解决这个问题,它在 @Column 注释上显示错误?

[英]How I can resolve this issue, It showing Error on @Column annotation?

I am mapping entity class columns with my database columns by using @Column annotation.我正在使用@Column注释将实体 class 列与我的数据库列映射。 But it is showing error message.但它显示错误消息。

Cannot resolve column 'name'无法解析列“名称”

在此处输入图像描述

You can disable it in IntelliJ.您可以在 IntelliJ 中禁用它。 File -> settings -> Editor -> Inspections -> uncheck the "Unresolved database references in annotations"

Second option is connect your database with IntelliJ.第二种选择是将您的数据库与 IntelliJ 连接。 View -> Window tool -> Database -> and add your data source.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决 mysql 中的这个问题? - How can I resolve this issue in mysql? 当我无法发现问题时,如何解决 SQL ERROR 1604 语法错误? - How to resolve SQL ERROR 1604 Syntax error when I can't spot the issue? 当我尝试在MySql 5.0中创建表时,显示错误1064,这是什么意思?如何解决这些错误? - When I tried to Create a table in MySql 5.0,it was Showing error 1064.What does it mean?How Can I resolve those error? 如何解决错误“数据截断:第 1 行‘id_brand’列的值超出范围”? - How can I resolve the error 'Data truncation: Out of range value for column 'id_brand' at row 1'? 如何解决此语法错误? - How can I resolve this syntax error? 如何使用SQL查询解决此问题 - How can I resolve this issue using an sql query 我收到此错误“错误 #1241 - 操作数应在 Mysql 中包含 1 列”,请解决此问题 - I am getting this error" Error #1241 - Operand should contain 1 column(s) in Mysql", please resolve this issue 如何根据另一列对列进行排序以解决无法添加或更新子行的问题 - How to sort a column based on another column to resolve can't add or update child row issue 如何使Fanbatis @Column批注正确地将Fantom类属性映射到DB列? - How can I make Fanbatis @Column annotation to map Fantom class attribute to DB column correctly? 如何解决致命的SQL语句错误? - How can I resolve a fatal SQL statement error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM