-
Book Overview & Buying
-
Table Of Contents
Spring Boot and Angular - Second Edition
By :
In this chapter, we explored how to manage persistent data effectively across both relational (PostgreSQL with JPA) and NoSQL (MongoDB) microservices using Spring Data. We walked through defining and annotating entity and document classes, designing expressive repositories with best practices in mind, and handling derived queries, custom JPQL/Mongo queries, pagination, projections, and specifications. Along the way, we emphasized clean repository design principles rooted in Domain-Driven Design (DDD), CQRS, and separation of concerns to ensure scalability and maintainability. Finally, we demonstrated how to write robust repository tests using @DataJpaTest, @DataMongoTest, and @SpringBootTest, validating everything from basic queries to advanced mappings and specifications in a production-like environment.This chapter provides a solid and practical foundation for building reliable persistence layers in real-world microservices, giving you the confidence to scale your architecture...
Change the font size
Change margin width
Change background colour