Skip to content

Commit

Permalink
Ny felt gjelderbarnreferanse i Grunnlag
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Nov 22, 2024
1 parent 6cdd59b commit aa25cbe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<token-support.version>3.2.0</token-support.version>

<!-- dependencies -->
<bidrag-felles.version>2024.11.07.095708</bidrag-felles.version>
<bidrag-felles.version>2024.11.22.114035</bidrag-felles.version>
<bidrag-tilgangskontroll.version>1.9.22</bidrag-tilgangskontroll.version>
<mockito-kotlin.version>5.3.1</mockito-kotlin.version>
<nimbus-jose-jwt.version>9.40</nimbus-jose-jwt.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ data class Grunnlag(
@Column
val gjelderReferanse: String? = null,

@Column
val gjelderBarnReferanse: String? = null,

@Column(nullable = false)
val grunnlagsreferanseListe: List<String> = emptyList(),
)
Expand All @@ -57,6 +60,7 @@ fun OpprettGrunnlagRequestDto.toGrunnlagEntity(vedtak: Vedtak) = with(::Grunnlag
Grunnlag::innhold.name -> innhold.toString()
Grunnlag::grunnlagsreferanseListe.name -> grunnlagsreferanseListe
Grunnlag::gjelderReferanse.name -> gjelderReferanse
Grunnlag::gjelderBarnReferanse.name -> gjelderBarnReferanse
else -> propertiesByName[parameter.name]?.get(this@toGrunnlagEntity)
}
},
Expand All @@ -72,6 +76,7 @@ fun Grunnlag.toGrunnlagDto() = with(::GrunnlagDto) {
GrunnlagDto::innhold.name -> stringTilJsonNode(innhold)
GrunnlagDto::grunnlagsreferanseListe.name -> grunnlagsreferanseListe
GrunnlagDto::gjelderReferanse.name -> gjelderReferanse
GrunnlagDto::gjelderBarnReferanse.name -> gjelderBarnReferanse
else -> propertiesByName[parameter.name]?.get(this@toGrunnlagDto)
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE grunnlag add column if not exists gjelder_barn_referanse text;

0 comments on commit aa25cbe

Please sign in to comment.