I have a entity which has a many relationships to other entities like below:
class Customer {
private String email;
// many to many
private Set<Street> streets
// many to many
private Set<Address> addresses;
and soo on..
}
I would like to find all customers and get back as a list of Customers with set only an emails - without any sets.
It is possible using query extracted from method name? Or only can I get only a list of objects[] and build objects in service?