Okay, this explains why the related issue is also available in 5.2 as the enhanced $$_hibernate_clearDirtyCollectionNames has the similar implementation that causes the lazy issue. Thank you for clarification!