Skip to content

Commit

Permalink
Improve intendation
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Jan 3, 2025
1 parent 6ecf6c3 commit bf2a651
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public interface VcsAccessLogRepository extends ArtemisJpaRepository<VcsAccessLo
* @return an {@link Optional} containing the newest {@link VcsAccessLog}, or empty if none exists.
*/
@Query("""
SELECT vcsAccessLog
FROM VcsAccessLog vcsAccessLog
WHERE vcsAccessLog.participation.id = :participationId
ORDER BY vcsAccessLog.id DESC
LIMIT 1
SELECT vcsAccessLog
FROM VcsAccessLog vcsAccessLog
WHERE vcsAccessLog.participation.id = :participationId
ORDER BY vcsAccessLog.id DESC
LIMIT 1
""")
Optional<VcsAccessLog> findNewestByParticipationId(@Param("participationId") long participationId);

Expand All @@ -48,12 +48,12 @@ public interface VcsAccessLogRepository extends ArtemisJpaRepository<VcsAccessLo
* @return an Optional containing the newest {@link VcsAccessLog} of the participation, or empty if none exists.
*/
@Query("""
SELECT vcsAccessLog
FROM VcsAccessLog vcsAccessLog
SELECT vcsAccessLog
FROM VcsAccessLog vcsAccessLog
LEFT JOIN TREAT (vcsAccessLog.participation AS ProgrammingExerciseStudentParticipation) participation
WHERE participation.repositoryUri = :repositoryUri
ORDER BY vcsAccessLog.id DESC
LIMIT 1
WHERE participation.repositoryUri = :repositoryUri
ORDER BY vcsAccessLog.id DESC
LIMIT 1
""")
Optional<VcsAccessLog> findNewestByRepositoryUri(@Param("repositoryUri") String repositoryUri);

Expand Down

0 comments on commit bf2a651

Please sign in to comment.