I\'m facing the following error when JPA attempts to map the result from a query to the result repository method DTO:
org.hibernate.hql.internal.ast.QuerySyntaxE
Why does your JdbcUserRepository
returns a User
object for findUserByUsername
and not a DbUser
? The solution should be obvious:
override fun findUserByUsername(username: String): DbUser?
And you do the mapping afterwards manually.
You should think that people know why they introduced multiple representations of the same object instead of using a single representation as long as possible...