MongoDB Container Addon
Lazy MongoDB Container
A Lazy Loading Container implementation for MongoDB that maps documents onto Java beans, based on Spring Data.
Feature Highlight:
- Automatic Bean Mapping through Spring Data's MongoTemplate
- Rich Query Interface through Spring Data's Criteria objects
- Optional Buffered variant for batch editing
- Lazy loading of new Beans to handle large datasets
It implements both unbuffered and buffered processing, for batch processing documents.
More information on GitHub: https://github.com/tyl/mongodbcontainer-addon
Sample code
public class Person { @Id private ObjectId id; private String firstName; private String lastName; private Address address; } public class Address { private String street; private String zipCode; private String city; private String state; } MongoOperations mo = new MongoTemplate(new MongoClient(), "database"); MongoContainer<Person> mongoContainer = MongoContainer.Builder .forEntity(beanClass, mo) .forCriteria(where("firstName").is("Paul")).build();
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Fixes issue #11
- Released
- 2015-06-25
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.3+
- Browser
- Browser Independent
MongoDB Container Addon - Vaadin Add-on Directory
Lazy MongoDB ContainerA Lazy Loading Container implementation for MongoDB that maps documents onto Java beans, based on Spring Data.
Feature Highlight:
* Automatic Bean Mapping through Spring Data's MongoTemplate
* Rich Query Interface through Spring Data's Criteria objects
* Optional Buffered variant for batch editing
* Lazy loading of new Beans to handle large datasets
It implements both unbuffered and buffered processing, for batch processing documents.
More information on GitHub:
https://github.com/tyl/mongodbcontainer-addon