Part 5. Building Java persistence applications with Spring

 

In part 5, you’ll connect Java applications to frequently used NoSQL databases: MongoDB and Neo4j.

In chapter 17, you’ll learn the most important features of the Spring Data MongoDB framework, and we’ll compare them with the already used Spring Data JPA and Spring Data JDBC. You’ll connect to a MongoDB database using two alternatives: MongoRepository and MongoTemplate. We’ll emphasize the advantages, drawbacks, and best use cases for both of these alternatives.

Next, chapter 18 introduces the Hibernate OGM framework and demonstrates how to use JPA code to connect to different NoSQL databases (MongoDB and Neo4j) that have different storage paradigms (document-oriented and graph-oriented). We’ll migrate between the two databases changing only the configuration and without touching the Java code.

After reading this part of the book, you’ll know how to work with NoSQL databases from Java programs and you’ll be able to choose between the alternative frameworks you can use.