Skip to content

Commit

Permalink
Fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Apr 4, 2024
1 parent f303ee5 commit 123300f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
@Repository
public interface WeightRepository extends JpaRepository<Weight, Long> {
@Query("select weight from Weight weight where weight.user.login = ?#{authentication.name}")
@Query("select weight from Weight weight where weight.user.login = ?#{authentication.name} order by weight.timestamp desc")
Page<Weight> findByUserIsCurrentUser(Pageable pageable);

default Optional<Weight> findOneWithEagerRelationships(Long id) {
Expand Down

0 comments on commit 123300f

Please sign in to comment.