Skip to content

Commit

Permalink
Forsøk med open-funksjoner
Browse files Browse the repository at this point in the history
  • Loading branch information
madsleegiil committed Feb 29, 2024
1 parent c554f77 commit 397d54b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import java.util.UUID
@Repository
open class SakRepository(val db: NamedParameterJdbcTemplate) {

fun hentSaker(oppfølgingsperiodeUUID: UUID): List<SakEntity> {
open fun hentSaker(oppfølgingsperiodeUUID: UUID): List<SakEntity> {
return db.query("""
SELECT * FROM SAK WHERE OPPFOLGINGSPERIODE_UUID = :oppfølgingsperiodeUUID
""".trimIndent(),
Expand All @@ -24,7 +24,7 @@ open class SakRepository(val db: NamedParameterJdbcTemplate) {
)
}

fun opprettSak(oppfølgingsperiodeUUID: UUID) {
open fun opprettSak(oppfølgingsperiodeUUID: UUID) {
db.update(
"""
INSERT INTO SAK (oppfolgingsperiode_uuid, created_at)
Expand Down

0 comments on commit 397d54b

Please sign in to comment.