Skip to content

Commit

Permalink
Mer oppsett hibernate fikse slettsbh
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen committed May 21, 2024
1 parent 7a957f1 commit 555c38d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ and not exists (
select avd
from avdeling avd
where s member of avd.saksbehandlere
)
and not exists (
select gruppe
from saksbehandlerGruppe gruppe
where s member of gruppe.saksbehandlere
)""")
.executeUpdate();
LOG.info("Slettet {} saksbehandlere uten knytninger til køer", slettedeRader);
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/pu-default.oppgave.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<sequence-generator name="SEQ_FILTRERING_YTELSE_TYPE" allocation-size="50" sequence-name="SEQ_FILTRERING_YTELSE_TYPE"/>
<sequence-generator name="SEQ_AVDELING" allocation-size="50" sequence-name="SEQ_AVDELING"/>
<sequence-generator name="SEQ_SAKSBEHANDLER" allocation-size="50" sequence-name="SEQ_SAKSBEHANDLER"/>
<sequence-generator name="SEQ_GRUPPE" allocation-size="50" sequence-name="SEQ_GRUPPE"/>
<entity class="no.nav.foreldrepenger.los.oppgave.Oppgave"/>
<entity class="no.nav.foreldrepenger.los.oppgave.OppgaveEgenskap"/>
<entity class="no.nav.foreldrepenger.los.hendelse.hendelsehåndterer.oppgaveeventlogg.OppgaveEventLogg"/>
Expand All @@ -25,4 +26,5 @@
<entity class="no.nav.foreldrepenger.los.organisasjon.Avdeling"/>
<entity class="no.nav.foreldrepenger.los.organisasjon.Saksbehandler"/>
<entity class="no.nav.foreldrepenger.los.hendelse.behandlinghendelse.MottattHendelse" />
<entity class="no.nav.foreldrepenger.los.organisasjon.SaksbehandlerGruppe" />
</entity-mappings>

0 comments on commit 555c38d

Please sign in to comment.