Skip to content

kuenne/java-mongo-util

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Mongo Util

Example

MongoDataUtil.insertObjectInMongo(object);

Inserts the object in Mongo in a collection named after the Class name.

 mongoUtil.getObjectFromCollection(object.class, hashMap);

Retrieves the object from Mongo. The first parameter is the Class to marshall to and the hash map is a hash map of parameters for the mongo Query. ["firstName": "John", "lastName": "Doe"]

About

A Mongo utility that wraps the mongo-java-driver library in favor of abstraction of type.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%