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语句查询
相关推荐
IT小哥哥呀1 天前
Jenkins + Docker 打造自动化持续部署流水线
docker·微服务·自动化·jenkins·springboot·高并发·限流
邂逅星河浪漫6 天前
【RabbitMQ】消息队列·详解+实操演示+功能实现(微服务架构)
rabbitmq·springboot·springamqp·consumer·exchange·producer·queue
vortex57 天前
用 Scoop 快速部署 JeecgBoot 开发环境:从依赖安装到服务管理
java·windows·springboot·web·开发·jeecg-boot
javpy10 天前
为什么Service层和Mapper层需要实现interface接口
java·springboot
古渡蓝按11 天前
基于 Word 模板占位符的动态文档生成实践(源码+保姆版)
springboot
带刺的坐椅11 天前
Solon (可替换 SpringBoot)集成 Docker 实战:30分钟搞定轻量级应用容器化部署
java·docker·jar·springboot·solon
程序员杨工12 天前
【原创】SpringBoot3+Vue3客户管理系统
vue.js·springboot
bug攻城狮13 天前
SaaS多租户架构实践:字段隔离方案(共享数据库+共享Schema)
mysql·架构·mybatis·springboot·1024程序员节
后端小张17 天前
【JAVA 进阶】SpringBoot集成Sa-Token权限校验框架深度解析
java·spring boot·spring·架构·sa-token·springboot·权限框架
梁辰兴17 天前
企业培训笔记:外卖平台后端--套餐管理模块--新建套餐信息
笔记·vue·mybatis·springboot·外卖管理系统