From 7cb2a80c74c18a715677323451a0b0c690628c07 Mon Sep 17 00:00:00 2001 From: Andrea Devold Fjeld Date: Wed, 31 Jul 2024 17:39:17 +0200 Subject: [PATCH] Lagrer de ansatte i AnsettelseLogg.java --- .../entity/AnsettelseLogg.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/levende-arbeidsforhold-ansettelse/src/main/java/no/nav/registre/testnorge/levendearbeidsforholdansettelse/entity/AnsettelseLogg.java b/apps/levende-arbeidsforhold-ansettelse/src/main/java/no/nav/registre/testnorge/levendearbeidsforholdansettelse/entity/AnsettelseLogg.java index 407d3d5afae..b5c78d1f4a1 100644 --- a/apps/levende-arbeidsforhold-ansettelse/src/main/java/no/nav/registre/testnorge/levendearbeidsforholdansettelse/entity/AnsettelseLogg.java +++ b/apps/levende-arbeidsforhold-ansettelse/src/main/java/no/nav/registre/testnorge/levendearbeidsforholdansettelse/entity/AnsettelseLogg.java @@ -1,9 +1,6 @@ package no.nav.registre.testnorge.levendearbeidsforholdansettelse.entity; -import jakarta.persistence.Column; -import jakarta.persistence.Entity; -import jakarta.persistence.Id; -import jakarta.persistence.Table; +import jakarta.persistence.*; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import lombok.*; @@ -22,7 +19,7 @@ @Table(name = "ansettelse_logg") public class AnsettelseLogg { @Id - @ColumnDefault("nextval('ansettelse_logg_id_seq'::regclass)") + @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id", nullable = false) private Integer id; @@ -36,9 +33,6 @@ public class AnsettelseLogg { @Column(name = "folkeregisterident", nullable = false) private String folkeregisterident; - @NotNull - @Column(name = "nav_arbeidsforhold_id", nullable = false) - private Long navArbeidsforholdId; @NotNull @Column(name = "\"timestamp\"", nullable = false)