Without specifying a selection case, the result of your query is an array of BwClientdetails, bwClientAllocations. Adding Select clientbefore request should solve your problem
Select client from BwClientdetails client left join client.bwClientAllocations
or replace your with
for(int i=0;i<list.size();i++){
BwClientdetails bc=list.get(i)[0];
System.out.println(bc.getClientid());
}
It’s best to always specify a where clause, it’s even part of the JPA specification
jelle source
share