You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [CarProjection]. Expected arguments are: java.lang.String, Color[........]
The expected second argument in the stacktrace is a Color, while I expected a List.
If I use an interface instead of a dto, it works as expected:
Anthony Foulfoin opened DATAJPA-1785 and commented
Hi,
I'm facing an issue when I try to use a dto projection with a spring repository
The method signature in the repository :
I get an exception when I call it:
The expected second argument in the stacktrace is a Color, while I expected a List.
If I use an interface instead of a dto, it works as expected:
But i'm facing some gson serialization problems with interface projections, maybe because of the spring proxy so I can't use this workaround
Issue Links:
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: