ORM tools / framework regarding mongodb for Java

Is there any ORM tool / structure for mongoDB with java, as well as maven support, so it will be useful to apply restrictions, use cursors in database operations?

+7
source share
6 answers

There are some. Start reading:

http://www.mongodb.org/display/DOCS/Java+Language+Center

Regarding maven support, just find the libraries at mvnrepository.com (most of them will be there)

+7
source

This is what you need: http://www.infoq.com/articles/mongodb-java-orm-bcd This is based on maven.

+2
source
+2
source

To work with Mongo Db at grass root level, I found the http://howtodoinjava.com/2014/05/29/mongodb-selectqueryfind-documents-examples/ link very useful

0
source

try MongoDBExecutor . This will definitely increase development productivity. Here is a simple CRUD example:

@Test public void test_crud_by_id() { Account account = createAccount(); account.setId(ObjectId.get().toString()); // create collExecutor.insert(account); // read Account dbAccount = collExecutor.get(Account.class, account.getId()); // update dbAccount.setFirstName("newFirstName"); collExecutor.update(dbAccount.getId(), N.asMap(FIRST_NAME, dbAccount.getFirstName())); // delete collExecutor.delete(dbAccount.getId()); // check assertFalse(collExecutor.exists(dbAccount.getId())); } 

Declaration: I am a developer of AbacusUtil

0
source

You can use morphine .

This is a shell for mongo-java-driver that works well in a production environment. It is well documented and supports raw queries.

Also good so community support

0
source

All Articles