Repository: ambari Updated Branches: refs/heads/trunk a6dac1fdf -> 995b5e053
AMBARI-20157. Ambari sends SNMP notifications in incorrect order (amarnathreddy via smohanty) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/995b5e05 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/995b5e05 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/995b5e05 Branch: refs/heads/trunk Commit: 995b5e0538333b4f06146dc6a15074f97ba3f200 Parents: a6dac1f Author: Sumit Mohanty <[email protected]> Authored: Tue Mar 7 13:14:23 2017 -0800 Committer: Sumit Mohanty <[email protected]> Committed: Tue Mar 7 13:14:23 2017 -0800 ---------------------------------------------------------------------- .../org/apache/ambari/server/orm/entities/AlertNoticeEntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/995b5e05/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity.java b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity.java index ba86687..8fffc29 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity.java @@ -48,7 +48,7 @@ import org.apache.commons.lang.builder.EqualsBuilder; @TableGenerator(name = "alert_notice_id_generator", table = "ambari_sequences", pkColumnName = "sequence_name", valueColumnName = "sequence_value", pkColumnValue = "alert_notice_id_seq", initialValue = 0) @NamedQueries({ @NamedQuery(name = "AlertNoticeEntity.findAll", query = "SELECT notice FROM AlertNoticeEntity notice"), - @NamedQuery(name = "AlertNoticeEntity.findByState", query = "SELECT notice FROM AlertNoticeEntity notice WHERE notice.notifyState = :notifyState"), + @NamedQuery(name = "AlertNoticeEntity.findByState", query = "SELECT notice FROM AlertNoticeEntity notice WHERE notice.notifyState = :notifyState ORDER BY notice.notificationId"), @NamedQuery(name = "AlertNoticeEntity.findByUuid", query = "SELECT notice FROM AlertNoticeEntity notice WHERE notice.uuid = :uuid"), @NamedQuery(name = "AlertNoticeEntity.findByHistoryIds", query = "SELECT notice FROM AlertNoticeEntity notice WHERE notice.historyId IN :historyIds"), // The remove query can be handled by a simpler JPQL query, @@ -240,4 +240,4 @@ public class AlertNoticeEntity { return result; } -} \ No newline at end of file +}
