From 4f320c9b522225ccf6a0e06d59c8272442202b18 Mon Sep 17 00:00:00 2001 From: Oleg Kopysov Date: Wed, 23 Oct 2024 05:39:55 +0300 Subject: [PATCH] chore: Extend the list of LPVSDetectedLicenseRepository methods Signed-off-by: Oleg Kopysov --- .../lpvs/repository/LPVSDetectedLicenseRepository.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java b/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java index bb096fb3..64615227 100644 --- a/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java +++ b/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java @@ -69,4 +69,13 @@ public interface LPVSDetectedLicenseRepository extends JpaRepository findByPullRequestAndLicenseIsNotNull(@Param("pr") LPVSPullRequest pr); + + /** + * Find detected license conflicts associated with a specific pull request where the license conflict is not null. + * + * @param pr The {@link LPVSPullRequest} to retrieve detected license conflicts for. + * @return List of {@link LPVSDetectedLicense} associated with the pull request where the license conflict is not null. + */ + List findByPullRequestAndLicenseConflictIsNotNull( + @Param("pr") LPVSPullRequest pr); }