diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-10-24 15:35:41 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-10-24 15:35:41 +0200 |
commit | 9db29bb6b623e452d32bf776ef7be825f976e331 (patch) | |
tree | 881a9610dd371fbcae4d73bbd2a902cd889b4bd2 /sonar-batch | |
parent | 088b3ca1ea2fb9b589fe56ca2de76a800098ed8b (diff) | |
download | sonarqube-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.java | 2 |
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; } |