[Logo]
Forums Register Login
How to group and set lists of Services and SubServices in object of CustomerResult POJO?
I have an arrayList customerDataList of objects of CustomerData POJO which has customerId, serviceId, subServiceId, messageCount. I want to iterate this customerDataList and set list of subservices in object Services POJO and then list of services objects in object of CustomerResult pojo.How can I do this?

Below are the classes for CustomerData,Service,SubService, CustomerResult:


Customer.java



Service.java


SubService.java




CustomerResult.java



Thanks.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 95 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 17, 2018 00:36:25.