green-creeper
green-creeper

Reputation: 316

MongoDB and PlayFramework 2.5 with Java

I used to develop on PlayFramework with Scala, but at this time I should use Java. That's why I'm looking for the best approach to work with MongoDB for non blocking queries and with object mapping. It seems like Play! is not so popular among Java developers, so there are not so many options.

I've found MongoDB Reactive Streams Java Driver, but object mapping with it seems so painful.

Could you suggest a better solution?

Upvotes: 0

Views: 357

Answers (2)

Raunak
Raunak

Reputation: 6507

I recommend using Spring Data MongoDB Library - http://projects.spring.io/spring-data-mongodb/

Upvotes: 1

Mysterion
Mysterion

Reputation: 9320

Possible approach could be to use Jongo and more specifically PlayJongo module, according to documentation it provides decent object mapping.

Upvotes: 0

Related Questions