【发布时间】:2019-03-01 10:54:44
【问题描述】:
我正在尝试执行此查询:
@Modifying
@Transactional
@Query(value = "UPDATE SpreadsheetRegisters r SET r.buApprobation =1 WHERE r.idRegister IN (:list)")
public void updateExpiredRegistries(@Param("list") List<BigDecimal> expiredRegistriesIds);
基本上,如果她的 id 在该列表中,我会尝试更新实体。
这是我得到的例外:
o.h.engine.jdbc.spi.SqlExceptionHelper : ORA-00936: missing expression
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
看来我的查询是错误的,但我不知道在哪里... 任何人都可以帮助我吗? 谢谢
【问题讨论】:
-
你能展示你的实体SpreadsheetRegisters吗?