Interface FetchGroupBuilder<T>


@NullMarked public interface FetchGroupBuilder<T>
Builds a FetchGroup by adding fetch clauses.

We add select() and fetch() clauses to define the object graph we want to load.


FetchGroup fetchGroup = FetchGroup
  .select("name, status")
  .fetch("contacts", "firstName, lastName, email")
  .build();

Customer.query()
  .select(fetchGroup)
  .where()
  ...
  .findList();