KamoCRM

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?

Tudo isso chega em seu espaço de trabalho por conta própria. Comece no plano gratuito e leia esta página novamente em um mês.

Começar Livre Para SempreVer Preços