Using roo to create a springsource project with mongo

Foreword: I come from .NET and PHP backround. It’s quite convenient for me to create a console application in Java. I have never used ORM on any platform. I am trying to learn the best practices of Java practices. Therefore, if I feel ignorant, perhaps because I am.

I downloaded the latest version of SpringSource Tool Suite . I want to create a spring project using JPG mongo (adapter / driver / driver). I would like to do this with roo. So I think I need to know this is the name of the JPA library with the mongodb driver.

+5
source share
3 answers

Check out Kundera , this is the JPA 1.0 ORM library for the Cassandra / Hbase / MongoDB database. For information on getting started, see this blog post: Working with MongoDB using Kundera .

+5
source

Try using the newer version of Kundera, i.e. 2.0.1. Serious changes have taken place since its inception, and I see many new features that are added and bug fixes. It currently supports JPA 1.0 and Cassandra 0.7.6 / HBase / MongoDB, but we plan to add support for Cassandra 0.8 and JPA 2.0 in the near future. There is a pretty good example here: https://github.com/impetus-opensource/Kundera/wiki/Getting-started

0

You can use Spring data mongodb , not a JPA, but easy to use. In addition, Spring roo has support to use it as a persistence layer .

Good luck.

0
source

All Articles