shiva
February 21, 2018, 6:20am
3
Thank you Vlad. I followed DTO projection implementation from your performance guide book and while implementing I noticed this error. Can you please help.
I am trying to execute a DTO projection and observe below error while loading this query. Please help on this issue.
_**org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list**_
SELECT new EmployeeDTO(e.obj1,e.obj2,e.obj3,e.startDate,e.endDate)
FROM Employee e
left outer join fetch e.obj1
left outer join fetch e.obj2
left outer join fetch e.obj3
where
e.startDate <= :date