Is there a tutorial how I can use mongodb database with Java play 2.0?
On the official website (playframework.org) there seems to be only the NoSql example.
Before you start using MongoDB in your Java programs, you need to make sure that you have MongoDB CLIENT and Java set up on the machine. You can check Java tutorial for Java installation on your machine. Now, let us check how to set up MongoDB CLIENT. You need to download the jar mongodb-driver-3.11.
Using the MongoDB JDBC connectivity, it's easier to place a query with the database, introduce updates to the database, and call upon stored processes. In this tutorial article, we will explore the MongoDB JDBC connect in detail.
For these reasons and more, MongoDB is the database perfectly suited for building modern mobile, social, real-time analytics, and geospatial apps.
check this demo on github. https://github.com/czihong/playMongoDemo
I use morphia to connect play 2.o and mongodb.
Check mongodb database with scala play 2.0 tutorial and this discussion. Unfortunately, there is no official tutorial at the moment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With