From 486b348141a2f4ce7f158481d0d9abdb82515c76 Mon Sep 17 00:00:00 2001 From: Christian Pape Date: Tue, 17 Dec 2024 15:27:23 +0100 Subject: [PATCH] NMS-16978: Changed eventId to long --- .../opennms/integration/api/v1/model/DatabaseEvent.java | 2 +- .../api/v1/model/immutables/ImmutableDatabaseEvent.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/src/main/java/org/opennms/integration/api/v1/model/DatabaseEvent.java b/api/src/main/java/org/opennms/integration/api/v1/model/DatabaseEvent.java index aa9f00cb..8c473398 100644 --- a/api/src/main/java/org/opennms/integration/api/v1/model/DatabaseEvent.java +++ b/api/src/main/java/org/opennms/integration/api/v1/model/DatabaseEvent.java @@ -44,7 +44,7 @@ public interface DatabaseEvent { String getUei(); - Integer getId(); + Long getId(); List getParameters(); diff --git a/common/src/main/java/org/opennms/integration/api/v1/model/immutables/ImmutableDatabaseEvent.java b/common/src/main/java/org/opennms/integration/api/v1/model/immutables/ImmutableDatabaseEvent.java index 3a615caa..a38959c3 100644 --- a/common/src/main/java/org/opennms/integration/api/v1/model/immutables/ImmutableDatabaseEvent.java +++ b/common/src/main/java/org/opennms/integration/api/v1/model/immutables/ImmutableDatabaseEvent.java @@ -43,7 +43,7 @@ */ public final class ImmutableDatabaseEvent implements DatabaseEvent { private final String uei; - private final Integer id; + private final Long id; private final List parameters; private ImmutableDatabaseEvent(Builder builder) { @@ -69,7 +69,7 @@ public static Builder newBuilderFrom(DatabaseEvent databaseEvent) { public static final class Builder { private String uei; - private Integer id; + private Long id; private List parameters; private Builder() { @@ -86,7 +86,7 @@ public Builder setUei(String uei) { return this; } - public Builder setId(Integer id) { + public Builder setId(Long id) { this.id = id; return this; } @@ -115,7 +115,7 @@ public String getUei() { } @Override - public Integer getId() { + public Long getId() { return id; }