79647666

Date: 2025-06-01 15:18:35
Score: 1
Natty:
Report link

The wrong syntax in HQL query. Change the query code to

@Query(value="FROM Chat as c where (first_user = :userId or second_user = :lastId)")
    Page<Chat> findNextUserChats(
            @Param("userId") long id,
            @Param("lastId") long lastId,
            @Param("lastUpdatedAt") String lastUpdatedAt,
            Pageable pageable);
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: SOLoose