https://github.com/jannehietamaki/mungbean
  
  
    Alternative MongoDB driver for languages running on the JVM 
    https://github.com/jannehietamaki/mungbean
  
        Last synced: 7 months ago 
        JSON representation
    
Alternative MongoDB driver for languages running on the JVM
- Host: GitHub
 - URL: https://github.com/jannehietamaki/mungbean
 - Owner: jannehietamaki
 - License: apache-2.0
 - Archived: true
 - Created: 2009-12-27T21:26:48.000Z (almost 16 years ago)
 - Default Branch: master
 - Last Pushed: 2011-10-22T12:09:55.000Z (about 14 years ago)
 - Last Synced: 2024-10-30T14:42:30.422Z (about 1 year ago)
 - Language: Java
 - Homepage:
 - Size: 17.7 MB
 - Stars: 18
 - Watchers: 1
 - Forks: 4
 - Open Issues: 1
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE.txt
 
 
Awesome Lists containing this project
- awesome-mongodb - Mungbean - Community driver for languages running on the JVM (Libraries / Java)
 - awesome-mongodb - Mungbean - Community driver for languages running on the JVM (Libraries / Java)
 
README
          Mongbean is an alternative MongoDB (http://www.mongodb.org) driver for languages running on the Java Virtual Machine.
## Language support so far
### Java
#### Features
* Basic operations: query, save, update, remove, ensureIndex, findOne, limit, sort [API](http://github.com/jannehietamaki/mungbean/blob/master/mungbean-java/src/main/java/mungbean/DBCollection.java)
* Mongo documents can be mapped to generic java.util.collections (Maps + Lists) 
* Typesafe [API](http://github.com/jannehietamaki/mungbean/blob/master/mungbean-java/src/test/java/mungbean/pojo/PojoWithIdIntegrationTest.java) for mapping POJOs to Mongo documents and back
* DSLs for conditional operators, sorting, aggregation and updates
* administration API (partial), authentication, cursors
* Failover/replica pairs (partial)
#### Code examples
    // Find items having field 'foo' greater than 5 and update those field 'bar' by 5.
    collection.update(new Query().field("foo").greaterThan(3), new Update().field("bar").increment(5)); 
    // typesafe query of POJOs
    List objects = collection.query(new Query().field("name").is("foo"));
    // Sorting
    List objects = collection.query(new Query().field("name").orderAscending());
    // select distinct values of field 'foo' of those items where value of 'bar' is greater than 5.
    collection.query(Aggregation.distinct("foo", new Query().field("bar").greaterThan(5))); 
* More code examples can be found [here](http://github.com/jannehietamaki/mungbean/blob/master/mungbean-java/src/test/java/mungbean/MongoIntegrationTest.java)
#### Missing features
* GridFS (partially)
### Clojure
* Basic operations: query, save, update, remove, limit, sort, aggregation
* [Working example](https://github.com/jannehietamaki/mungbean/blob/master/mungbean-clojure/src/test/clojure/mungbean_test.clj)
## License
ASL 2.0