I have to use multiple tables,so i have used NativeQuery
along with @Query
annotation
@Query( value= "select c.logo logo ,c.name customerName,(sum(wp.completion_percent)) completionPercent,sum(ks.days) days ,count(u.id) fteCount,count(w.wp_order_id) wpCount FROM wp_order w, Project p , Assignee a , User u ,Customer c ,Domains d,kpi_status ks ,wp_kpi wp where w.project_id=p.id and p.id=a.project_id and p.cust_id=c.id and w.id=wp.wpo_id and wp.id=ks.wp_kpi_id and a.status=?1"
,nativeQuery=true)
public List<WPOrder> getProjectJoin(String status);