美文网首页
HQL could not locate named param

HQL could not locate named param

作者: 扎哈_ | 来源:发表于2021-03-24 23:52 被阅读0次

    could not locate named parameter [xxx]

    今晚编写hql的时候出现could not locate named parameter [xxx]的问题,找了网上很多资料。网友们的问题大多都是拼写错误。但是我的不是

    我的问题主要是:

    • entity没有添加@Entity注解
    • entity没有被sessionFactory扫描到
      在解决了这两个问题后,hql就正常工作了。

    FUNCTION 数据库名.xxx 不存在

    需要使用hql的函数。

    ··· 如果能帮助到您,我感到十分荣幸,感谢您的阅读。有问题欢迎联系我 ···

    相关文章

      网友评论

          本文标题:HQL could not locate named param

          本文链接:https://www.haomeiwen.com/subject/bzwkhltx.html