I have an entity called Client:
@Entity
public class Client extends User {
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@OneToMany(mappedBy = "client", fetch = FetchType.LAZY)
private Set<Activity> activities = new HashSet<>();
When I retrieve a Client object, also my nested collection are filled. Which is the best way to limit the size of these collection? I should avoid to retrieve them and manually execute a query for each collection? Which should be the best approach considering performance?