Questions
- Spring Data, a common programming model based on entities and repositories, can be used for different types of database engines. From the source code examples in this chapter, what are the most important differences in the persistence code for MySQL and MongoDB?
- What is required to implement optimistic locking using Spring Data?
- What is MapStruct used for?
- What does it mean if an operation is idempotent and why is that useful?
- How can we access the data that is stored in the MySQL and MongoDB databases without using the API?