-
Notifications
You must be signed in to change notification settings - Fork 560
MappingException: Couldn't find PersistentEntity for type class ...domain.User$HibernateProxy #2095
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
Comments
I'm getting the same exception after upgrading to Spring Boot 2.6+, presumably because in 2.6.0 there was an upgrade to Spring Data 2021.1.0. |
We've fixed the issue in Spring Data JPA with spring-projects/spring-data-jpa#2383 but the fix isn't released yet. Can you test against |
I have tested the snapshot, works fine. Thank You! |
Hello @mp911de I am having this problem and I am on spring-data-jpa 2.6.3. Maybe it's a different flavor of the same issue? See
In this case I am using a request to get UserGroups, which has a collection of lazy initialized users.
And the response is intended to have something like this
The response serialization is failing. I've been debugging the fix that was added to Can you please advise? We are trying to bump from spring boot 2.5.5 to 2.6.6 due to the recent CVE. Thank you Joao |
Description
I wrote a custom Controller for dynamic filtering, and try to respond with the result (paged and projected entities), it failed with the lazy loaded property (
HibernateProxy
- Image.creator) whenPersistentEntityJackson2Module$ProjectionSerializer
try to serialize it.It is a working project on spring-boot 2.5.8, and after I changed to 2.6.2 this Exception happened.
MVC Controller
Entity
Exception
The text was updated successfully, but these errors were encountered: