Follows up on [https://hibernate.atlassian.net/browse/HHH-14238|https://hibernate.atlassian.net/browse/HHH-14238|smart-link].
Setting the default for {{enableenableCollectionInDefaultFetchGroup}} to {{true}} instead of {{false}} would fix problems such as [quarkusio/quarkus#27657|https://github.com/quarkusio/quarkus/discussions/27657], where calling a getter to retrieve a collection on an initialized entity would throw a {{LazyInitializationException}}, whereas one would expect the exception to be thrown later, when accessing the collection itself ({{.size()}}, {{.iterator()}}, ...).
Changing the default was suggested when the option was introduced some time ago: [hibernate/hibernate-orm#3558 (comment)|https://github.com/hibernate/hibernate-orm/pull/3558#issuecomment-695003875], [hibernate/hibernate-orm#3558 (comment)|https://github.com/hibernate/hibernate-orm/pull/3558#issuecomment-701440788] |
|