You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following errors were found during migration to springboot 3.x.:
BadJpqlGrammarException: Line 1:43 no viable alternative at input 'ie.object'; Bad JPQL grammar [select ie from ItemExample ie left join ie.object io where io.externalId = :externalId]
for
@query("select ie from ItemExample ie left join ie.object io where io.externalId = :externalId")
Page findPageByExternalId(@param("externalId") String externalId, Pageable pageable);
BadJpqlGrammarException: Line 1:63 no viable alternative at input 'ie.status=com.app.domain.object'; Bad JPQL grammar [select ie from ItemExample ie where ie.status = com.app.domain.object.Status.UP]
for
@query("select ie from ItemExample ie where ie.status = com.app.domain.object.Status.UP")
Page findByStatusUp(Pageable pageable);
DmitryBelousov1992
changed the title
Error when using reserved words (JPQL aggregate functions) in entity field names and packages
Error when using reserved words in JPQL query for entity field names and packages
Apr 8, 2025
This is to some extent a duplicate of #3829. However, for the plain JPQL parser, the issue has persisted and we fixed that problem when neither Hibernate nor Eclipselink are on the classpath.
The following errors were found during migration to springboot 3.x.:
I am attaching an example springboot 3.x application with detailed comments and examples of errors and workarounds found in the file com.app.repo.ItemExampleRepository.
https://github.com/DmitryBelousov1992/SpringReservedWordsExampleErrors.git
The text was updated successfully, but these errors were encountered: