Skip to content

cinovo/jongo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jongo logo

Jongo, Query in Java as in Mongo shell

Faithful spirit, Mongo query language isn't available in Java, Jongo fixes that. Copy/paste your queries to string.

Object oriented, Save & find objects into & from collections. Use embedded Jackson marshalling or your own.

Wood solid, As fast as Mongo Java driver. Open source, fully tested & made of rock solid libraries.

Documentation available at jongo.org

Java docs at https://jongo.ci.cloudbees.com/job/jongo-ci/site/apidocs/index.html

Adds Document versioning

This fork was made to add versioning capabilities to the Jongo framework

  • Initialize Jongo with the additional parameter: audited=true
  • Implement the saved pojos with the interface IWithVersion

This will create a second collection for each collection with the suffix _history, storing all versions of the documents.

Get historical documents

Use following query to get all versions of a distinct document:

db.MyCollection_history.find({_docId: "myDocumentId"}).sort({"_version": -1})

Packages

No packages published

Languages

  • Java 99.6%
  • Shell 0.4%