I would like to know if there is a way to implement the DAO design pattern to connect to a Nosql database (MongoDB) and do all the CRUD opérations. In my research i found all the solutions are related to spring support for MongoDB but I am using only pure Java.
Have you tried using Morphia instead : https://mongodb.github.io/morphia/ Pretty much does the job.
Here's a quick tutorial : https://dzone.com/articles/using-morphia-map-java-objects
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.