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语句查询
相关推荐
jasnet_u9 小时前
SpringBoot服务优雅停机
nacos·springboot·优雅停机
YDS8293 天前
DeepSeek RAG&MCP + Agent智能体项目 —— 环境搭建和项目初始化
java·springboot·agent·rag·deepseek
jasnet_u4 天前
SpringMVC 请求处理深度解析:从 DispatcherServlet 到视图渲染
spring·springmvc·springboot
格鸰爱童话4 天前
springboot3.2使用neo4j
springboot·neo4j
不是光头 强4 天前
Spring Boot 多线程场景下 i18n 国际化失效问题排查与解决
java·开发语言·springboot
极光代码工作室6 天前
基于SpringBoot的宿舍管理系统
java·springboot·web开发·后端开发
unique_williams7 天前
开源 | 我用 HarmonyOS + Spring Boot 写了一个全栈背单词 App,已上架 GitHub
springboot·鸿蒙
下次再写9 天前
深入浅出微服务架构:从理论到Spring Boot实战
java·微服务·springboot·springcloud·架构设计·后端开发·分布式系统
牛奶咖啡139 天前
CI/CD——在jenkins中构建流程实现springboot项目的自动化构建与部署
java·ci/cd·k8s·jenkins·springboot·springboot制作镜像·使用源码项目制作镜像
凤山老林9 天前
慢SQL治理:索引优化实战指南——从定位到优化的完整解决方案
java·sql·springboot·慢sql治理·sql 性能优化