aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-10-24 15:35:41 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-10-24 15:35:41 +0200
commit9db29bb6b623e452d32bf776ef7be825f976e331 (patch)
tree881a9610dd371fbcae4d73bbd2a902cd889b4bd2 /sonar-batch
parent088b3ca1ea2fb9b589fe56ca2de76a800098ed8b (diff)
downloadsonarqube-9db29bb6b623e452d32bf776ef7be825f976e331.tar.gz
sonarqube-9db29bb6b623e452d32bf776ef7be825f976e331.zip
SONAR-2919 Alert/Profile/Version event sensors fill "created_at" col.
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java
index ffa330334eb..94becc59ec7 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java
@@ -399,6 +399,8 @@ public class DefaultIndex extends SonarIndex {
public Event addEvent(Resource resource, String name, String description, String category, Date date) {
Event event = new Event(name, description, category);
event.setDate(date);
+ event.setCreatedAt(new Date());
+
persistence.saveEvent(resource, event);
return null;
}