Build a screen that shows authors together with the list of books each one wrote. For each author, bundle their name with the titles of the books they wrote and return it all in one response. Complete LibraryService.authorsWithBooks. Note: it's a one-author-to-many-books relationship.
Complete an API built on Spring Boot 3 and JPA (in-memory H2) that returns authors together with the lists of books they wrote. It is a one-author-to-many-books relationship: for each author, the name and the titles of the books they wrote are grouped together and returned in a single response.
For an API that returns a list and the related data attached to each item, how that data is loaded can change the way the database is used a great deal even when the result is identical. The response may look fine on screen, yet the data-access approach reveals its differences as the data grows. This problem is a data-access exercise in how related data is loaded when serving a list over a one-to-many relationship.