• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mongo DB In Action - OR mapping

 
paul nisset
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Are there any Java frameworks that are commonly used for object relational mapping with a Mongo DB ?
If not ,how is this handled?

thanks,
Paul
 
Palak Mathur
Ranch Hand
Posts: 342
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Java project, I would recommend using Spring Data MongoDB. It follows POJO centric approach to interact with MongoDB Collection

You just need to add a dependency to your maven/gradle project and rest all is very easy. You can in no time be up and running with Spring Data MongoDB. You can read more about the features here.

If you are using Spring as your bread and butter, then certainly Spring Data is your way to go.

I have also used Jongo library. It is also very simple to use but is not an ORM.

Also, MongoDB Java Driver can be used as well. Again not an ORM.
 
paul nisset
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Palak.
I do use Spring in a lot of projects, so this is very useful info.
Currently,we are using Spring /Hibernate but I should definitely read up on Spring Data.
It is probably more flexible.
 
Palak Mathur
Ranch Hand
Posts: 342
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
paul nisset wrote:Thanks Palak.
I do use Spring in a lot of projects, so this is very useful info.
Currently,we are using Spring /Hibernate but I should definitely read up on Spring Data.
It is probably more flexible.


If you are using Spring/Hibernate and I assume when you say Spring, you mean Spring Data, then Spring Data MongoDb should be just an extension and is surely worth a try.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic