Remove eager feature-loading from getOrganizationByDomain

Refactorkamo-shared-library
Shipped
April 18, 2026 at 7:25 PM UTC
Author
Kamo
Commit
f5367d5

Features are an org-level concern unrelated to most callers of this method (e.g. registration, login domain resolution). Force-loading them via setFeatures() replaced the Hibernate-tracked collection, causing cascade orphanRemoval errors. Features lazy-load naturally via JPA for any caller that actually needs them.

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