-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Adopt to changed Hibernate behavior returning domain types using tuple queries #2815
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
@markusheiden Can you clarify what happens if you switch from |
If using |
Newer Hibernate versions return |
…e queries. We now allow using the domain type when it is returned from a tuple query. This allows projections if the return value is not a Map. Closes #2815
Interface-based projections fail: When calling getId() on the objects returned by the query method, null is returned (-> exception below) though in the database there is an ID set. When using the JPA entity as the return type of the repository method, it works.
The code worked with Spring Boot 2.6 and fails since 2.7+.
Stacktrace:
The text was updated successfully, but these errors were encountered: