@Query("SELECT tt, at.field, at.anotherField from TableTest tt LEFT JOIN AnotherTable at ON at.commonField = tt.commonField")
List<TestPojo> findAllPojo(List<TableTestDTO> TableTestDTOList);
How can I map this JPA query results to a Pojo without native query, like this approach ?
I'm using JPA and Hibernate. Can anyone provide other option?