Skip to content

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

@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.

Activity

kamtorocks

kamtorocks commented on Feb 26, 2019

@kamtorocks

How to fix.....

cowtowncoder

cowtowncoder commented on Feb 28, 2019

@cowtowncoder
Member

@Leenin I do not use Hibernate, I don't know how it works, and I do not have itch to scratch. If someone has, feel free to contribute a fix.

Unless someone actually cares and has time to invest, this module will be dropped from Jackson 3.x, and until then please do not at me. If you want to discuss things, go to fucking mailing list and do not add notes here demanding help.

deleted a comment from kamtorocks on Feb 28, 2019
pses

pses commented on Dec 13, 2021

@pses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @cowtowncoder@Javi@pses@kamtorocks

        Issue actions

          When parsing an entity field annotated with FetchType.EAGER, the REPLACE_PERSISTENT_COLLECTIONS feature does not work. · Issue #109 · FasterXML/jackson-datatype-hibernate