Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongodb database with Java play 2.0

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.

like image 665
bdeveloper01 Avatar asked Apr 05 '12 04:04

bdeveloper01


People also ask

Can I use Java with MongoDB?

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.

Can you use JDBC with MongoDB?

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.

Can we use MongoDB in app development?

For these reasons and more, MongoDB is the database perfectly suited for building modern mobile, social, real-time analytics, and geospatial apps.


2 Answers

check this demo on github. https://github.com/czihong/playMongoDemo

I use morphia to connect play 2.o and mongodb.

like image 120
Chan Avatar answered Sep 22 '22 12:09

Chan


Check mongodb database with scala play 2.0 tutorial and this discussion. Unfortunately, there is no official tutorial at the moment.

like image 41
maialithar Avatar answered Sep 20 '22 12:09

maialithar