In Chapter 5, we discussed the need to create mappings between the database model and the object model. Mappings can be created in two different ways: via inline annotations (as we’ve done through the book so far) or as separate XML files in one of two primary formats (Hibernate’s internal XML format and JPA’s mapping format, both of which have value but are not suggested for most applications).
The XML-based mapping is rarely used outside ...