-
Notifications
You must be signed in to change notification settings - Fork 676
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
QueryTypeMismatchException
if the DTO has a no-args constructor
#3216
Comments
Thank you for reporting the issue - we'll have a look what's going on there. |
DTO based projections try to resolve the properties to load from the DTOs constructor, whereas the lookup is defined as outlined in the reference documentation. In this case the no-args constructor is picked, which in turn triggers an attempt to use the source For the time being please provide only one constructor defining the properties to project onto or make use of the Going forward, we've are discussing a potential enhancement to the projection flow of data-jpa to cover the use case described above using available setter methods to determine the fields to load. |
For the time being we at least now document the current behaviour and how to cope with it. See: #3286
For the time being we at least now document the current behaviour and how to cope with it. See: #3286
QueryTypeMismatchException
if the DTO has a no-args constructor
For the time being we at least now document the current behaviour and how to cope with it. Closes: #3286 Original pull request: #3449
Tweak wording. See: #3286 Original pull request: #3449
Tweak wording. See: #3286 Original pull request: #3449
For the time being we at least now document the current behaviour and how to cope with it. Closes: #3286 Original pull request: #3449
Tweak wording. See: #3286 Original pull request: #3449
PostRepository.java
Post.java
PostDtoImpl.java
Error Msg
The text was updated successfully, but these errors were encountered: