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语句查询
相关推荐
程序员buddha2 天前
SpringBoot+Dubbo+Zookeeper实现分布式系统步骤
分布式·zookeeper·dubbo·springboot
天上掉下来个程小白2 天前
缓存套餐-03.功能测试
redis·缓存·springboot·苍穹外卖·springcache
Ten peaches3 天前
苍穹外卖(订单状态定时处理、来单提醒和客户催单)
java·数据库·sql·springboot
曾经的三心草3 天前
RabbitMQ-springboot开发-应用通信
spring boot·rabbitmq·springboot·java-rabbitmq·应用通信
来自星星的坤3 天前
Spring Boot 中如何解决 CORS 问题(详解)
java·spring·springboot
LUCIAZZZ3 天前
Caffeine快速入门
java·后端·spring·缓存·操作系统·springboot
zfj3214 天前
spring-boot-maven-plugin 将spring打包成单个jar的工作原理
spring·maven·jar·springboot·classloader·打包
问道飞鱼5 天前
【Springboot进阶】springboot+mybatis+jsqlparser实现数据权限控制
mybatis·springboot·jsqlparser·数据权限
zfj3215 天前
用spring-boot-maven-plugin打包成单个jar有哪些缺点&优化方案
java·maven·jar·springboot
JiaHao汤6 天前
RabbitMQ 中的六大工作模式介绍与使用
java·spring boot·rabbitmq·springboot·java-rabbitmq