hibernate jpa projection with @Query
问题 Most of the examples I've seen is using entityManager.createQuery or .createNativeQuery etc. Is there a way to have something like the following working? data class SummaryDto(val employeeName: String, val employerName: String) @Query("select e.name as employeeName, emp.name as employerName " + "from Employer e " + "inner join Employee emp on emp.employer_id = e.id ", nativeQuery = true) fun findSummaries(): List<SummaryDto> When I ran the above code I got this error No converter found