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语句查询
相关推荐
智能工业品检测-奇妙智能3 小时前
SpringBoot整合FFmpeg的方法
人工智能·ffmpeg·springboot·deepseek·openclaw
Luke Ewin5 小时前
ASR数据集采集系统 | ASR方言数据集采集系统 | ASR方言数据集采集系统 | 语音识别数据集采集系统
vue·springboot·语音识别·asr·asr数据集采集·asr方言数据集采集
孔明click333 天前
Sa-Token v1.45.0 发布 🚀,正式支持 Spring Boot 4、新增 Jackson3/Snack4 插件适配
java·sa-token·开源·springboot·登录·权限认证
玄〤15 天前
个人博客网站搭建day5--MyBatis-Plus核心配置与自动填充机制详解(漫画解析)
java·后端·spring·mybatis·springboot·mybatis plus
渣瓦攻城狮17 天前
浜掕仈缃戝ぇ鍘侸ava闈㈣瘯锛氫弗鑲冮潰璇曞畼涓庢悶绗戠▼搴忓憳璋㈤鏈虹殑瀵硅瘽
jvm·redis·docker·springboot·java闈㈣瘯·澶氱嚎绋�·璁捐妯″紡
长路 ㅤ   18 天前
Milvus系列之01、Spring boot快速集成Milvus
springboot·向量索引·知识库搭建·milvus向量数据库·rag检索增强生成
Dragon Wu19 天前
SpringCloud 多模块下引入独立bom模块的正确架构方案
java·spring boot·后端·spring cloud·架构·springboot