Skip to content

Commit

Permalink
add missing Embedded annotations to createdBy and lastModifiedBy
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsCW committed Dec 18, 2024
1 parent aefd33e commit b940931
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.persistence.Embeddable;
import jakarta.persistence.Embedded;
import java.time.Instant;
import lombok.EqualsAndHashCode;
import lombok.Getter;
Expand All @@ -19,6 +20,7 @@
@EqualsAndHashCode
public class AuditMetadata {

@Embedded
@CreatedBy
@JsonProperty(value = "created_by")
private UserMetadata createdBy;
Expand All @@ -27,6 +29,7 @@ public class AuditMetadata {
@JsonProperty(value = "created_date")
private Instant createdDate;

@Embedded
@LastModifiedBy
@JsonProperty(value = "last_modified_by")
private UserMetadata lastModifiedBy;
Expand Down

0 comments on commit b940931

Please sign in to comment.