Use getReferenceById to avoid cascade orphanRemoval flush error on registration

FixSecurityService
Navios
18 de abril de 2026 às 19:10 UTC
Autor
Kamo
Enviar
8829a3d

Loading Organization via findById inside @Transactional caused Hibernate to detect the features collection was de-referenced during auto-flush, throwing JpaSystemException. getReferenceById returns a lazy proxy without loading any collections.

Todas as alterações

Como o que vês no transporte?

Cada uma dessas atualizações pousa automaticamente em seu espaço de trabalho. Comece grátis e veja crescer semana após semana.

Começar Livre Para SempreVer Preços