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
After upgrading spring boot to 2.1.7 from 2.1.6, running application are failing due to the issue:
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: count near line 1, column 8 [select count(new map(model as levelTingkat)) from com.jasamedika.medifirst2000.entity.LevelTingkat model left join model.id id where id.kdProfile=:kdProfile and model.statusEnabled=true ]
Query : "select new map(model as levelTingkat) "
+ " from LevelTingkat model left join model.id id "
+ " where id.kdProfile=:kdProfile "
+ " and model.statusEnabled=true "
This looks related to either a Spring Data JPA or Hibernate upgrade. I've opened https://jira.spring.io/browse/DATAJPA-1598 to see if the Spring Data team can help. Can you please attach your full LevelTingkatDao file to that issue. It's not currently clear if you're relying on the query generated by the method name findAllList or if you're using @Query.
Uh oh!
There was an error while loading. Please reload this page.
After upgrading spring boot to 2.1.7 from 2.1.6, running application are failing due to the issue:
In new
CrudRepository
, it seem, has adding "count" to Query HQL, because present ofPageable
parameter.The text was updated successfully, but these errors were encountered: