Skip to content

Commit

Permalink
feat: legger inn en avsluttet kolonne i databasen.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek committed Dec 5, 2024
1 parent e868679 commit 337e46f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.util.Objects;
import java.util.Set;

import org.hibernate.annotations.NaturalId;

import jakarta.persistence.AttributeOverride;
import jakarta.persistence.AttributeOverrides;
import jakarta.persistence.Column;
Expand All @@ -15,9 +17,6 @@
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Version;

import org.hibernate.annotations.NaturalId;

import no.nav.abakus.iaygrunnlag.kodeverk.Fagsystem;
import no.nav.abakus.iaygrunnlag.kodeverk.IndexKey;
import no.nav.abakus.iaygrunnlag.kodeverk.YtelseType;
Expand Down Expand Up @@ -71,7 +70,6 @@ public class Kobling extends BaseEntitet implements IndexKey {
@AttributeOverrides({@AttributeOverride(name = "fomDato", column = @Column(name = "opplysning_periode_skattegrunnlag_fom")), @AttributeOverride(name = "tomDato", column = @Column(name = "opplysning_periode_skattegrunnlag_tom"))})
private IntervallEntitet opplysningsperiodeSkattegrunnlag;


/**
* inaktive koblinger skal ikke brukes. må filtreres vekk.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
alter table kobling add column avsluttet boolean default false not null;

comment on column kobling.avsluttet is 'Settes true når koblingen blir avsluttet. Grunnlaget blir sperret for endringer.';

0 comments on commit 337e46f

Please sign in to comment.