JPA QuerySyntaxException: unexpected token: xxx near

错误:QuerySyntaxException: unexpected token: salaryDate near line 1, column 22

问题:使用的是entityManager.createQuery()方法但是查询却用sql语句,没有使用hql语句

解决:

  1. entityManager.createQuery()方法使用hql语句查询
  2. entityManager.createNativeQuery()方法使用sql语句查询
相关推荐
韩立学长1 天前
【开题答辩实录分享】以《走失人口系统档案的设计与实现》为例进行答辩实录分享
mysql·mybatis·springboot
炫彩@之星1 天前
浅析SpringBoot框架常见未授权访问漏洞
springboot·未授权访问
请叫我头头哥2 天前
SpringBoot进阶教程(八十七)数据压缩
springboot
wxr06164 天前
部署Spring Boot项目+mysql并允许前端本地访问的步骤
前端·javascript·vue.js·阿里云·vue3·springboot
学编程的小鬼5 天前
SpringBoot日志
java·后端·springboot
小霞在敲代码6 天前
SpringBoot + RabbitMQ 消息队列案例
消息队列·springboot
老朋友此林7 天前
一文快速入门 MongoDB 、MongoDB 8.2 下载安装、增删改查操作、索引、SpringBoot整合 Spring Data MongoDB
数据库·mongodb·springboot
吹晚风吧7 天前
SSE是什么?SSE解决什么问题?在什么场景使用SSE?
java·springboot·sse
小霞在敲代码9 天前
SpringBoot连接PgSQL
springboot·pgsql
ccccczy_9 天前
Java微服务容器化与 Kubernetes 编排实战:从 Docker 多阶段构建到云原生弹性扩展
java·docker·kubernetes·springboot·microservices·cloudnative·containerization