diff options
author | antoine.vinot <antoine.vinot@sonarsource.com> | 2024-10-11 15:54:52 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-21 20:03:59 +0000 |
commit | 596b193a1a2d64c50c728ff8051721f61cd79d0c (patch) | |
tree | 530b28376d5313c83d818c41dfae2273edbc4a54 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | |
parent | 65d606200841e8d63af5e2ad5039cefdd69bc72a (diff) | |
download | sonarqube-596b193a1a2d64c50c728ff8051721f61cd79d0c.tar.gz sonarqube-596b193a1a2d64c50c728ff8051721f61cd79d0c.zip |
SONAR-23098 Create Project Dependencies DB model
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java index 46cb3d67623..fc0faf5c348 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java @@ -41,6 +41,7 @@ import org.sonar.db.component.SnapshotDao; import org.sonar.db.dependency.CveCweDao; import org.sonar.db.dependency.CveDao; import org.sonar.db.dependency.IssuesDependencyDao; +import org.sonar.db.dependency.ProjectDependenciesDao; import org.sonar.db.duplication.DuplicationDao; import org.sonar.db.entity.EntityDao; import org.sonar.db.es.EsQueueDao; @@ -202,6 +203,7 @@ public class DbClient { private final CveDao cveDao; private final CveCweDao cveCweDao; private final IssuesDependencyDao issuesDependencyDao; + private final ProjectDependenciesDao projectDependenciesDao; public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) { this.database = database; @@ -299,6 +301,7 @@ public class DbClient { cveDao = getDao(map, CveDao.class); cveCweDao = getDao(map, CveCweDao.class); issuesDependencyDao = getDao(map, IssuesDependencyDao.class); + projectDependenciesDao = getDao(map, ProjectDependenciesDao.class); } public DbSession openSession(boolean batch) { @@ -666,4 +669,8 @@ public class DbClient { public IssuesDependencyDao issuesDependencyDao() { return issuesDependencyDao; } + + public ProjectDependenciesDao projectDependenciesDao() { + return projectDependenciesDao; + } } |