Mutate features collection in-place to avoid cascade orphanRemoval error

Fixkamo-shared-library
Shipped
April 18, 2026 at 7:19 PM UTC
Author
Kamo
Commit
79d22ff

Calling org.setFeatures(newList) replaces the Hibernate-tracked persistent collection, causing JpaSystemException when any query triggers auto-flush in an open EntityManager session (OpenEntityManagerInView). Mutating the existing collection with clear()+addAll() preserves the tracked reference.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing