could not locate named parameter [xxx]
今晚编写hql的时候出现could not locate named parameter [xxx]的问题,找了网上很多资料。网友们的问题大多都是拼写错误。但是我的不是
我的问题主要是:
- entity没有添加@Entity注解
- entity没有被sessionFactory扫描到
在解决了这两个问题后,hql就正常工作了。
FUNCTION 数据库名.xxx 不存在
需要使用hql的函数。
··· 如果能帮助到您,我感到十分荣幸,感谢您的阅读。有问题欢迎联系我 ···
网友评论