I have two entities Outlet and Report.They are not connected in Entity class. I want Reports even when outlet id is not present. Following is the query I am writing but its behaving like inner join.
@Query("Select rep,out.area.area_name from Report rep left join Outlet out on out.id=rep.outletId where rep.cDate in :dates")
List<Object[]> getReportsByMethodAndFormulaAndTimePeriods(@Param("dates") List<LocalDate> dates);
Any ideas?