Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play 2 Ebean with MongoDB

When I try to use MongoDB driver in my play framework application's application.conf as

db.default.driver=com.mongodb

I am getting Driver not found error. I have configured dependency in Build.scala for MongoDB driver.

I am using official Java driver for MongoDB mongo-java-driver v 2.11.1. I want this driver to be used with Ebean.

What is the correct class name to be used in the db.default.driver to get this working?

like image 607
Ashok Kumar M Avatar asked Nov 17 '25 10:11

Ashok Kumar M


1 Answers

EBean doesn't support MongoDB, it only works with relational databases as it is a JPA-compliant driver.

Here you have an example using Java and MongoDB which may help you to bootstrap your project

like image 79
Pere Villega Avatar answered Nov 19 '25 09:11

Pere Villega



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!