Sample Apps: Spring data MongoDB and JSF Integration Tutorial (PART 2)

--

MongoDB Introduction
MongoDB is a open-source scalable, high-performance NoSQL database. It is a document-oriented Storage. It can store JSON-style documents with dynamic schemas. In this application, each product is stored as JSON-style document in MongoDB.

Schema Design in MongoDB
Each product in the catalog contains general product information (e.g. sku, title, and product type), price details (e.g. retail and list price) and product sub-details (e.g. tracks of audio CDs / chapters of books).

In this application, MongoDB is used. The schema design will be focus more on the data usage. It is different from traditional RDBMS schema design. The schema design in MongoDB should be:

Sample query to add the data:

Sample query to test the sample data:

Originally published at https://www.borislam.com on December 9, 2021.

--

--

Baby Steps to Pro
Baby Steps to Pro

Written by Baby Steps to Pro

We are technology enthusiasts with more than 15 years of software development experience. Our current focus is framework development and architectural design.

No responses yet