Bypass JPA org lookup to avoid Hibernate cascade flush error

FixSecurityService
Spegnimento
18 aprile 2026 alle ore 19:26 UTC
Autore
Kamo
Impegno
f4123e8

**************** triggers **************** which causes a Hibernate auto-flush. That flush fails because Organization.features was previously replaced with a plain List (cascade=all-delete-orphan violation). The resendVerification endpoint only needs the org ID, so replace the JPA call with a plain jdbcTemplate query — the same pattern already used for user lookup in this method.

Tutte le modifiche

Come quello che vedi la spedizione?

Ognuno di questi aggiornamenti atterra automaticamente nello spazio di lavoro. Inizia gratis e guardalo crescere settimana dopo settimana.

Inizia gratis per sempreVisualizza il prezzo