Table of Contents
The domain layer is responsible for the data-model and mapping it to a database. The most common approach is to use a Relational Database Management System (RDMS). In such a case, we strongly recommend to follow our JPA Guide. Some NoSQL databases are supported by spring-data, so you can consider the repository guide.
Note: The domain layer is the replacement for the data-access layer in the modern project structure.