Below is the output of my code...
System.out.println(CompanyStructure.get());
Output: [com.some.spf.b2bac.facilit.api.parameter.GetkingResult$king@2357662d, com.some.spf.b2bac.facilit.api.parameter.GetkingResult$king@633ced71, com.some.spf.b2bac.facilit.api.parameter.GetkingResult$king@312aac03]
I tried to convert to json string.
jsonString = CommonUtil.convertFromEntityToJsonStr(CompanyStructure.get());
System.out.println(jsonString);
Output:[{"customerId":"1"},{"customerId":"2"},{"customerId":"3"}];
I want to fetch all names
with the ids 1,2,3
through sql iam using postgresql. how do i fix this?