DevRj
DevRj

Reputation: 468

MongoDb and java dao implementation

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.

Upvotes: 2

Views: 4949

Answers (1)

sharath
sharath

Reputation: 3616

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

Upvotes: 4

Related Questions