Skip to content

Potential bug in Spring data; mapping null to wrapper class throws exception #1167

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

Closed
MagdaZny opened this issue Feb 15, 2022 · 0 comments
Closed
Labels
status: waiting-for-triage An issue we've not yet triaged type: regression A regression from a previous release

Comments

@MagdaZny
Copy link

MagdaZny commented Feb 15, 2022

Hi,
I wanted to report a bug I noticed when upgrading Spring Boot 2.5.8 → 2.6.2.
After the upgrade the Jdbc @query when returning null it cannot be mapped to String, as before. Now we get an exception Couldn't find PersistentEntity for type class java.lang.String!.

@Query(
       "UPDATE tableName SET topography = (" +
           "SELECT ST_Multi(ST_Union(s.polygon)) " +
           "FROM tableX s " +
           "WHERE ... "+
           ") " +
           "WHERE ... " +
           "RETURNING ST_AsGeoJson(topography)"
   )
String updateTopography(...);

Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

3 participants