Skip to content

When parsing an entity field annotated with FetchType.EAGER, the REPLACE_PERSISTENT_COLLECTIONS feature does not work. #109

Open
@Javi

Description

@Javi

In the Hibernate 5 ReplacePersistentCollectionTest test suites, changing the Customer class collection fields into eager fetching and commenting the Assert.assertFalse(Hibernate.isInitialized(customer.getPayments())); line from the testReplacePersistentCollection reproduces the bug clearly.

For now, if the feature is needed, it should only be used with lazily loaded fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions