As per your question i came across Hibernate OGM which stands for Hibernate Object Grid Mapper which provides JPA (java Persistence api)the support for the NoSQL solutions. Hibernate OGM has the following capabilities : -
- persists entities into a NoSQL
- datastore specific native queries
- full-text queries, using Hibernate Search as indexing engine
I haven't explore more on this framework OGM but looks very promising solution for your questions. You can refer to the following URL to get more idea about the Hibernate OGM