From fe1c2180565080cf8650015b23221845e7e0e389 Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Fri, 19 Aug 2022 11:45:07 +0200 Subject: [PATCH] springframework PersistenceConstructor is deprecated, let's use PersistenceCreator instead --- .../common/persistence/domain/FederationBatchInfo.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/persistence/src/main/java/app/coronawarn/server/common/persistence/domain/FederationBatchInfo.java b/common/persistence/src/main/java/app/coronawarn/server/common/persistence/domain/FederationBatchInfo.java index e5f886d84f..8ac3c1c341 100644 --- a/common/persistence/src/main/java/app/coronawarn/server/common/persistence/domain/FederationBatchInfo.java +++ b/common/persistence/src/main/java/app/coronawarn/server/common/persistence/domain/FederationBatchInfo.java @@ -1,11 +1,9 @@ - - package app.coronawarn.server.common.persistence.domain; import java.time.LocalDate; import java.util.Objects; import org.springframework.data.annotation.Id; -import org.springframework.data.annotation.PersistenceConstructor; +import org.springframework.data.annotation.PersistenceCreator; /** * Information about federation batches with their status. @@ -36,7 +34,7 @@ public FederationBatchInfo(String batchTag, LocalDate date, FederationBatchSourc * @param date date the batch was created * @param status status stored as {@link FederationBatchStatus} */ - @PersistenceConstructor + @PersistenceCreator public FederationBatchInfo(String batchTag, LocalDate date, FederationBatchStatus status, FederationBatchSourceSystem sourceSystem) { this.batchTag = batchTag;