IDEA14 hibernate :createQuery("from UserEntity")Can't resolve symbol 'UserEntity' less..

在使用IDEA14和Hibernate框架时遇到问题,提示'UserEntity'符号无法解析。该问题可通过禁用Persistence QL查询错误检查来解决。在错误代码行左侧找到红色灯泡图标,选择禁用Hibernate QL检查选项即可。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境:IDEA14 

框架:hibernate


问题截图:


问题描述:

Can't resolve symbol 'UserEntity' less..
无法解析符号 'UserEntity' 。
This inspection controls whether the Persistence QL Queries are error-checked
这次检查控制持久性 QL 查询是否错误检查



解决办法:

        鼠标移到 提示错误的代码上,左边显示一个红色的灯泡,有个选项里面有个禁用ql检查的,禁用了就好了


原文解释:http://www.progtown.com/topic1153146-idea-7-swears-on-hibernate-hql.html

Found.
发现。
It is necessary on a line with an error, to the left of a line a sign "bulb", on it you direct - the link on Hibernate QL inspection options, and there among options "disable inspection".
它是必要的在一条线的一个错误,左边的一条线一个标志"灯泡",关于它你直接-上休眠 QL 检查选项的链接和那里选项中"禁用检查"。





评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值