In the previous chapter, you learned the basics of Spring and how to build a project that exposes an endpoint that persists information into a database using an architecture of layers with Spring Data. Still, the endpoint only obtains the knowledge of one entity without any connection or relationship with another. This type of situation in the relational database is not so common.
This chapter explains the relationships between the entities and how to use inherence to reduce duplicate code in Java. ...