Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
springframework PersistenceConstructor is deprecated, let's use Persi…
Browse files Browse the repository at this point in the history
…stenceCreator instead
  • Loading branch information
hilmarf committed Aug 19, 2022
1 parent 7172a76 commit fe1c218
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit fe1c218

Please sign in to comment.