| For the record: I believe that we have more then one option, but we took all pros and cons into account choosing the hibernate.enable_lazy_load_no_trans. The property itself cannot be a constant solution, so somebody else would likely need having logging there as well. I believe it is not a big deal for the core component, but it is a big deal to override the behaviour via UserCollectionType, all tmp session related stuff are encapsulated as much as it is not possible to extend without special enhancement. Anyway, if not logging it should be extendable at least. So, making org.hibernate.collection.internal.AbstractPersistentCollection#openTemporarySessionForLoading available for sub-classes would be an extension option. Thanks |