Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HibernateModule.REPLACE_PERSISTENT_COLLECTIONS not working when FetchType.EAGER #140

Open
ashraf-revo opened this issue May 21, 2021 · 4 comments

Comments

@ashraf-revo
Copy link

the REPLACE_PERSISTENT_COLLECTIONS work only when FetchType.LAZY
i have write this code
when i debug i found this happen du tho this part which change serlizer from PersistentCollectionSerializer to CollectionSerializer
alt text

@jackoneall
Copy link

I've come across this issue as well. I'm not sure why the BeanPropertyWriter doesn't have my PersistentSet property have the PersistentCollectionSerializer assigned earlier during the BeanSerializerBase.resolve() method like a separate field I have in my object, but it looks like everything would have been alright except for the above code @ashraf-revo pointed out.

pses added a commit to pses/jackson-datatype-hibernate that referenced this issue Dec 1, 2021
@dziegenbalg
Copy link

This also happens to us, please integrate this fix into the next version.

@cowtowncoder
Copy link
Member

@dziegenbalg Unfortunately merging is blocked by reasons indicated in the PR, including lack of CLA. I cannot merge the fix as-is, unfortunately, unless author provides that.

And timing is such that this won't make it in 2.14.0 either. But since no API change needed, could conceivably be included in a patch.

@Taha-Di-Nero
Copy link
Contributor

@cowtowncoder
Hi,
Here is another Pull Request:
#173

@cowtowncoder cowtowncoder changed the title REPLACE_PERSISTENT_COLLECTIONS not working when FetchType.EAGER HibernateModule.REPLACE_PERSISTENT_COLLECTIONS not working when FetchType.EAGER Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants