I have a jpa query that holds two records, from the two records I am unable to select the first record using @query in jpql
Here is my snippet
@Query("select h from History h where h.id =:id and h.status =:status " +
"and h.type =:type and h.user =:user")
History getAHistory(@Param("id") Long id, @Param("status") Status status,
@Param("type") Type type, @Param("user") User user);
From findings I am trying to use the LIMIT 1 but no success