aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-03-30 10:13:33 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-16 20:20:45 +0200
commit5073eb0f98e99ab0efbdd3f34b07a97f11e1d26c (patch)
tree418dbeb6b1c0b512b9d06ab542dec9887431c05f /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parentac3c3089d82cc78390f761776a848be77306538d (diff)
downloadsonarqube-5073eb0f98e99ab0efbdd3f34b07a97f11e1d26c.tar.gz
sonarqube-5073eb0f98e99ab0efbdd3f34b07a97f11e1d26c.zip
SONAR-10517 Create table project_mappings
* Migration * Add DAO * Purge on project deletion
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.java7
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 99732f30f36..31d0465dcd4 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
@@ -38,6 +38,7 @@ import org.sonar.db.event.EventDao;
import org.sonar.db.issue.IssueChangeDao;
import org.sonar.db.issue.IssueDao;
import org.sonar.db.alm.AlmAppInstallDao;
+import org.sonar.db.mapping.ProjectMappingsDao;
import org.sonar.db.measure.LiveMeasureDao;
import org.sonar.db.measure.MeasureDao;
import org.sonar.db.measure.custom.CustomMeasureDao;
@@ -136,6 +137,7 @@ public class DbClient {
private final LiveMeasureDao liveMeasureDao;
private final WebhookDao webhookDao;
private final WebhookDeliveryDao webhookDeliveryDao;
+ private final ProjectMappingsDao projectMappingsDao;
public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) {
this.database = database;
@@ -200,6 +202,7 @@ public class DbClient {
liveMeasureDao = getDao(map, LiveMeasureDao.class);
webhookDao = getDao(map, WebhookDao.class);
webhookDeliveryDao = getDao(map, WebhookDeliveryDao.class);
+ projectMappingsDao = getDao(map, ProjectMappingsDao.class);
}
public DbSession openSession(boolean batch) {
@@ -435,4 +438,8 @@ public class DbClient {
public WebhookDeliveryDao webhookDeliveryDao() {
return webhookDeliveryDao;
}
+
+ public ProjectMappingsDao projectMappingsDao() {
+ return projectMappingsDao;
+ }
}