aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorJacek <52388493+jacek-poreda-sonarsource@users.noreply.github.com>2019-08-02 18:23:19 +0200
committerSonarTech <sonartech@sonarsource.com>2019-09-24 20:21:11 +0200
commitb926d579367732fc4a6de08e24be75ff23718dce (patch)
tree91f8681a4001da41ffc090c52462a1cef5d2eb0c /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parentfa5508dbd860babe0d25f9cd4d78437d1ff9deb5 (diff)
downloadsonarqube-b926d579367732fc4a6de08e24be75ff23718dce.tar.gz
sonarqube-b926d579367732fc4a6de08e24be75ff23718dce.zip
SONAR-12365 create new_code_period table (#1986)
* Create new_code_periods table along with dto and dao
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 27f1832a2bb..33fbf8d2662 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
@@ -47,6 +47,7 @@ import org.sonar.db.measure.LiveMeasureDao;
import org.sonar.db.measure.MeasureDao;
import org.sonar.db.measure.custom.CustomMeasureDao;
import org.sonar.db.metric.MetricDao;
+import org.sonar.db.newcodeperiod.NewCodePeriodDao;
import org.sonar.db.notification.NotificationQueueDao;
import org.sonar.db.organization.OrganizationDao;
import org.sonar.db.organization.OrganizationMemberDao;
@@ -152,6 +153,7 @@ public class DbClient {
private final WebhookDeliveryDao webhookDeliveryDao;
private final ProjectMappingsDao projectMappingsDao;
private final OrganizationAlmBindingDao organizationAlmBindingDao;
+ private final NewCodePeriodDao newCodePeriodDao;
public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) {
this.database = database;
@@ -224,6 +226,7 @@ public class DbClient {
projectMappingsDao = getDao(map, ProjectMappingsDao.class);
organizationAlmBindingDao = getDao(map, OrganizationAlmBindingDao.class);
internalComponentPropertiesDao = getDao(map, InternalComponentPropertiesDao.class);
+ newCodePeriodDao = getDao(map, NewCodePeriodDao.class);
}
public DbSession openSession(boolean batch) {
@@ -491,4 +494,8 @@ public class DbClient {
public InternalComponentPropertiesDao internalComponentPropertiesDao() {
return internalComponentPropertiesDao;
}
+
+ public NewCodePeriodDao newCodePeriodDao() {
+ return newCodePeriodDao;
+ }
}