Help

We have been quiet for too long on Hibernate OGM. It is time for us to speak up because we have a lot to show. And to celebrate, we are releasing its first beta.

What is Hibernate OGM

Hibernate OGM is for NoSQL datastores what Hibernate ORM is for relational databases. A way to persist your objects into a native datastore. The good thing is that Hibernate OGM aims at supporting all of JPA features (and the Hibernate native APIs):

  • all the mapping annotations, not a selected few
  • the APIs
  • the semantic (cascade etc)
  • and JP-QL

Work on the NoSQL side

We initially started with Infinispan as single backend and we worked our way to abstract it to support more:

Infinispan

We did not stand still on Infinispan. We greatly improved the backend in particular by using the FineGrainedAtomicMap class to store data and benefit from its increased scalability. See more in the performance section later on.

Ehcache

Ehcache was the first to jump on the wagon and propose an alternative backend implementation. Kudos to Alex Snaps and Greg Luck for taking this bet and help us improve our abstraction API.

MongoDB

MongoDB was the first non key-value based NoSQL solution we supported and we worked very hard to make sure the mapping was akin to what a developer would have designed without Hibernate OGM. For example, identifiers are mapped to the _id property and association information is embedded in the entity by default.


    {
        "_id" : "owner0001",
        "name": "Emmanuel",
        "twitter": "emmanuelbernard",
        "bankAccounts" : [
            { "bankAccounts_id" : "accountXYZ" }
        ]
    }



You can override that setting with various other mapping strategies.

We have more ideas we want to implement to optimize the Hibernate OGM - MongoDB integration and we will be working with folks like Jeff Yemin from 10gen to make sure we do the most natural mapping for MongoDB and that our access layer is as efficient as possible.

Note that we have decided to enable the MongoDB safe mode by default in Hibernate OGM as we thought it made more sense for models persisted with Hibernate OGM and because we don't want to be responsible for killing kittens. You can switch this back off of course.

Other NoSQL engines

Expect the list of supported NoSQL engines to grow as we continuously strive to integrate more and more engines to cover the full bandwidth of NoSQL solutions. Come and talk to us if you want to help out! You can either contribute to any ongoing effort or even start a new one. It's not that hard.

Performance considerations

We worked a lot around performance. The project started as an experiment but we did not manage to make it fail ;) So this time around we worked on performance optimizations.

By side effect, we also improved performance of Hibernate ORM - we reuse the same core engine. We also entered a chase with the Infinispan team to see which of Hibernate OGM or Infinispan was consuming the most time in the call stack. We went back and forth a few times and both projects reduced their overhead by a lot!

At the moment, the profiler does not show much overhead on using Hibernate OGM's stack compared to directly using the underling NoSQL datastore.

Query support

While you won't unfortunately see much in this release, we have been hard at work on the JP-QL query support. Sanne wrote a JP-QL query parser that will be flexible enough for our needs. In fact this is also likely going to be the foundation for the next-gen parser of Hibernate ORM.

He has also worked on the first steps to convert a JP-QL query into an Hibernate Search query. This will let you use Hibernate Search as an internal index and query system besides your NoSQL store. This can either replace or complement the query capability of the NoSQL solution.

Today, this solution can answer simple queries already (make sure to use the Hibernate Session API).

We also have been working on integrating Teiid's query engine which will be our way towards complex queries not natively supported by the underlying NoSQL engine. The plan is to combine the JP-QL parser, the Teiid query engine and write native support for the various NoSQL query options.

We have a great plan but that would take a lot of words to explain so let me save that for a future post.

In the mean time, you can use Hibernate OGM and do queries in two ways:

  1. use Hibernate Search to index your entities and write Hibernate Search queries directly. What is nice about this model is that it's a natural extension to the Hibernate or JPA APIs (managed entities are returned etc)
  2. use the native query capability of your underlying NoSQL store. Because Hibernate OGM tries to map data in a natural way, it's easy to simply query the NoSQL store directly

We hope to show you JP-QL support very soon as the foundations are now built. If you are interested in how we plan on doing queries, come talk to us or go read the architecture chapter in our reference documentation

Community, documentation and download

We worked on many more stuff like better JPA support, better ease of use, less redundant data structures, etc but this post is too long already. Check out the changelog if you are interested.

This project would be nowhere without the help from our community and contributors. Special thanks to:

  • Guillaume Scheibel who literally made MongoDB's support happen
  • Alan Fitton and Oliver Carr for their work on MongoDB associations support
  • Nicolas Helleringer - he is always around somewhere
  • Khanh Maudoux for his experimentation around Cassandra
  • Davide D'Alto for his experimentation on Neo4J and a few other things
  • Seiya Kawashima for his experimentation around Redis and Voldemort

If you are interested in contributing, come talk to us, we have many plans and a humongous todo list.

And guys we took great pain - literally - to write a very good reference guide, so go read it and go download Hibernate OGM.

Enjoy

65 comments:
 
03. Oct 2012, 15:48 CET | Link
Nicolas Helleringer

Congratulations !!

ReplyQuote
 
03. Oct 2012, 16:11 CET | Link
Guillaume Scheibel

Congrats ! This is finally happening, let's make it fly :)

 
03. Oct 2012, 16:54 CET | Link
Scott Marlow

Congratulations!

 
05. Oct 2012, 14:53 CET | Link
Nikita

Please don't forget about Cassandra db support too!

 
05. Oct 2012, 20:03 CET | Link
Nikita wrote on Oct 05, 2012 08:53:
Please don't forget about Cassandra db support too!

Of course! Some work was done already: https://github.com/hibernate/hibernate-ogm/pull/100

 
17. Sep 2013, 09:21 CET | Link
Sravan

Can u please share working example of Spring,Hibernate and Infinispan as Hibernate 2nd level cache..

my mail id: sravankumar4rmhyd@gmail.com

Thanks, Sravan Kumar

 
20. May 2014, 20:28 CET | Link
AndrewDavid

Pretty beneficial article this is for me personally. I just took all the info from this article and totally used that in my new venture program. Thanks for the info! kontorimööbel

 
21. May 2014, 08:42 CET | Link
andrew

This informative article is amazing! I am developing a completely new project together with a number of my acquaintances, in addition we seriously desired a number of facts that could get the project heading. We've got those details here. Thanks! Text

 
22. May 2014, 17:08 CET | Link
Premium WordPress Themes

Very impressive article. I am really happy with this. I must say that I will try to copy the style of this article in my upcoming speeches. Thank you! Premium WordPress Themes

 
23. May 2014, 13:39 CET | Link
bio-hazard cleaner tampa

Bio Scene Clean Up is a highly specialized cleaning company that provides bio-hazardous, blood cleanup services for people involved in accidental or trauma scene situations. bio-hazard cleaner tampa

 
25. May 2014, 12:19 CET | Link

Old Navy is the good place for shopping on discount. The lowest priced chain in the Gap’s kingdom usually deals solely fashion-forward outfits and other products on discount. We are regular supplier of Old Navy coupons and tells the methods, how to Shop Old Navy stores. Further we are providing you best tip how to avail the best discount coupons for Old Navy Shops.

 
27. May 2014, 12:09 CET | Link

Before buying best running shoes for flat feet we must to know the key words to look for running shoes. Flat feet, may be also called as fallen arches, Flat feet are a postural deformity in which the arch of the feet collapses, with the entire sole of the feet coming into complete or near-complete contact with the ground. flat feet shoes

 
28. May 2014, 11:53 CET | Link

I was in search of random topics that can be knowledgeable to e read. Here I got something of the same sort about Hibernate OGM systems. I have read the article but couldn't find the link for downloading the software. Please do share it online.

fashion for play
 
30. May 2014, 18:30 CET | Link

I really liked the way you've written this article. Thanks a lot. I really appreciate your work. fathers day poems

 
04. Jun 2014, 08:21 CET | Link
usama

Epson's cost-effective ReadyPrint TM-T20 thermal printer is the latest addition to Epson's line of energy-efficient POS printers. Based on Epson's advanced printing technology, the ReadyPrint TM-T20 was designed specifically to meet the needs of low volume retailers with basic POS printing functionality, high reliability and ease-of-use features. Receipt Printer

 
04. Jun 2014, 15:39 CET | Link
Flockfolie

Click HELP for text fDie Firma TBNetz GmbH ist ein sächsisches Familienunternehmen. Sie wurde im Jahre 2006 in Dresden gegründet. Die TBNetz GmbH ging als spezieller Fachhandels- und Servicepartner der Werbetechnikbranche aus der im Jahre 1999 gegründeten TBNetzwerktechnik Dresden hervor. Flockfolieormatting instructions. Then edit this text and check the preview.

 
04. Jun 2014, 16:23 CET | Link
sasadasdasd

Click HELP for text formattstencilBOY ist Hersteller und Lieferant von wiederverwendbaren Schablonen aus Kunststoff, Kautschuk, Magnetfolie, Zellkautschuk und Moosgummi. Parkplatzmarkierunging instructions. Then edit this text and check the preview.

 
05. Jun 2014, 23:08 CET | Link
jack

It contains truly information. Your website is very useful. Thanks for sharingAntonio, and many other individuals who reside in the creating Southern online broker vergleich deutschland

 
06. Jun 2014, 02:04 CET | Link

Click HELP for text formatting instructions. Then edit this text and check the preview.Your article tells me you must have a lot of background in this topic. Can you direct me to other articles about this? I will recommend this article to my friends as well. Thanks

 
06. Jun 2014, 08:07 CET | Link
sadsadsad

A leather sectional sofa is an ideal option for large living rooms. It also offers additional seating space. Modern sectional sofas are available in various fabric materials but leather is a popular choice. Leather is durable, easy to clean, and stylish. The sofas are available in different size, finishes and colors. sectional sofas

 
10. Jun 2014, 08:38 CET | Link
bedste advokat

Check this out! One document really worth big money has arrived. I'm seeking sponsors in order to sponsor this kind of good content. It will be effective for your ratings. Lets hope I could bring in a sponsor to identify the talent in this document. bedste advokat

 
10. Jun 2014, 15:23 CET | Link
pre-settlement funding

If you are in need of funds fast from a settlement that hasn’t started paying, then look no further than presettlementfundings.com. With us, you know you are being provided with the highest quality services to ease the stress of your settlement process. We know getting the funds you need can be difficult and time consuming—not with us. pre-settlement funding

 
11. Jun 2014, 18:45 CET | Link
sasadasd

This little website is a collection of my notes on money, finances, business and what have you. Simply put, I am collecting everything here. It seems to work better than spiral bound notebooks that I seem to always forget where I left them or some app that I can never find or when I find it, I just can’t navigate it well. These wordpress sites are easy. http://isdut.com/

 
12. Jun 2014, 09:15 CET | Link
saaSSADSA | sasadsa(AT)sadsad.com

If you are in need of funds fast from a settlement that hasn’t started paying, then look no further than presettlementfundings.com. With us, you know you are being provided with the highest quality services to ease the stress of your settlement process. We know getting the funds you need can be difficult and time consuming—not with us. pre-settlement funding

 
12. Jun 2014, 09:28 CET | Link
sasadsad

Thanks a lot for this. sakhtemoon.com cctv

 
12. Jun 2014, 12:04 CET | Link
Cheap traffic

Do you want to have massive traffic to your business or personal site? If so, then you are in the right place. Here at easyvisitors.com, we provide you with real human traffic from all over the world. This is done using the latest software and cutting edge technology so you can be assured of results. Cheap traffic

 
12. Jun 2014, 13:38 CET | Link
sasa

I really appreciate the hardwork of the author. It's very nice and attractive blog. Thanks alot. YOUPOWER ELECTRICAL

 
13. Jun 2014, 12:28 CET | Link
צמיגים

Tire Deal undertakes to provide customers with the service and the fastest delivery and the best course at the best deals!!! Have a good and safe driving with tires from Tire Deal! צמיגים

 
13. Jun 2014, 13:23 CET | Link
saasasas

This article is just too awesome. I am very thankful to you for posting this info. what to do in boca raton

 
13. Jun 2014, 14:18 CET | Link
sasadasd

Singing high notes can be pretty tricky for the aspiring singers. It’s like the sweet dream of every newbie. But don’t be discouraged because we’re here to help you out with your creative ambition… how to sing high notes

 
14. Jun 2014, 09:07 CET | Link
sasadasd

When we sit, we often practice unhealthy posture, causing us to slump, which results in the spine dropping backwards, reversing its natural curve, and loosening the lumbar area. When we slump, the muscles at the back are stretched and the lumbar discs are pushed backwards, pressing on the nerves. Moreover, the chin is forced to stick out forward, just to maintain an upward posture as the lumbar spine arches backwards. http://wizzley.com/lumbar-support-pillow/

 
14. Jun 2014, 09:21 CET | Link
sasadsad

If you are in need of funds fast from a settlement that hasn’t started paying, then look no further than presettlementfundings.com. With us, you know you are being provided with the highest quality services to ease the stress of your settlement process. We know getting the funds you need can be difficult and time consuming—not with us. pre-settlement funding

 
14. Jun 2014, 19:43 CET | Link

Click HELP for text formatting instructions. Then edit this text and check the preview.I have been studying this topic for a long time. You have provided great information in your post and some things I have not seen in other content I have read by others.

 
15. Jun 2014, 09:24 CET | Link
sasdasdsad

If you are in need of funds fast from a settlement that hasn’t started paying, then look no further than presettlementfundings.com. With us, you know you are being provided with the highest quality services to ease the stress of your settlement process. We know getting the funds you need can be difficult and time consuming—not with us. settlement funding

 
15. Jun 2014, 18:50 CET | Link

Click HELP for text formatting instructions. Then edit this text and check the preview.There are a lot of sites and articles out there on this particular point, but you have captured another side of the subject. This is good content thank you for adding it here.

 
16. Jun 2014, 11:29 CET | Link
Buy Targeted Traffic

Do you want to have massive traffic to your business or personal site? If so, then you are in the right place. Here at easyvisitors.com, we provide you with real human traffic from all over the world. This is done using the latest software and cutting edge technology so you can be assured of results. Buy Targeted Traffic

 
16. Jun 2014, 13:15 CET | Link
sasad

Red Law was created to accomplish two main purposes: (1) to provide the public with free, accessible and understandable legal information; and (2) to provide the public with professional and affordable legal services. Red Law

 
16. Jun 2014, 14:37 CET | Link
sasadsad

Here at YourITgroup we provide IT services and solutions to companies throughout South Florida. Our dedicated team is fully committed to making sure you get the support you need, when you need it. What this means for you is that you experience less problems, less downtime and lower costs but more productivity and higher profit. it consulting south florida

 
16. Jun 2014, 18:54 CET | Link

Click HELP for text formatting instructions. Then edit this text and check the preview.I am currently teaching a class and part of the curriculum involves this subject matter. Do you have any other posts I can look at regarding this?

17. Jun 2014, 12:47 CET | Link

As always, if you have a question about the Girlfriend Activation System that isn't answered in one of the posts on this GFAS review site, I field questions at the following email: sterlingkrosby (at) gmail.com and will do my best to get back to you ASAP. Sometimes it may take me a few days, but if you put Girlfriend Activation System Question in the title of your email, it will help me find it and respond quicker.https://www.rebelmouse.com/girlfriendsystemreview/

 
18. Jun 2014, 08:28 CET | Link
sadsadsad

Shop online for Cosplay and costume get free same day delivery or cash on delivery. Since 2004, MyCosplay.com.sg is one of the most visited Cosplay online shop in Singapore. All Cosplay costumes are imported from USA and Taiwan. cosplay

 
18. Jun 2014, 08:44 CET | Link
original paintings

This originality has occurred as artists have searched for materials to fulfill a particular quality of color or texture that is outside the range of more usual materials. original paintings

 
19. Jun 2014, 08:42 CET | Link
amateur videos

This is the best article that I've read. I have never seen a better article than this one. I must say that I want more best articles like this. Dude, you are an amazing writer! I really think in the future, you'll be even more successful! amateur videos

 
19. Jun 2014, 13:39 CET | Link
last longer in bed

This is a fantastic post. I am not kidding around with my statement before. This really is the most fantastic post that I've read. Although, I want more posts like this one in the future from your side. I hope that you can provide. Cheers, man! You are my fav author! last longer in bed

 
20. Jun 2014, 14:32 CET | Link

This page has really good and valid content. Thanks alot for this information. Looking forward for some more good articles like this. Scariest Scenes in Movies

 
23. Jun 2014, 20:06 CET | Link
restuarant at the shard

This is a really good post. I am literally really happy that today I got to read this amazing article. Thanks a million for publishing this important information containing post for me. I really appreciate it! Cheers! restuarant at the shard

 
24. Jun 2014, 10:08 CET | Link
Holiday in Sri Lanka

We are 24Hours available on our Hotline - We work closely with all the Hotels in Sri Lanka We ensure the comfort and safety to our clients by providing comfortable A/C equipped vehicles operated by highly experienced and safety-conscious drivers who are always courteous, considerate and attentive of our clients needs. Holiday in Sri Lanka

 
26. Jun 2014, 19:31 CET | Link
sasadasd

Since the popularity and attention that Garcinia Cambogia has receive since it was shown on television, many researchers, investigators, and costumer have been working to discover the effectiveness that this diet product has. Marco Gross

 
26. Jun 2014, 19:59 CET | Link
sadasd

Garcinia Cambogia is without any doubt the most popular weight loss tool today. It has been one of the revolutionary finds in the field of weight loss experiments. Garcinia Cambogia is now an attractive and hard to find substance. It seems everyone is going after this product to accomplish weight loss in a natural way. Saul Harrison

 
26. Jun 2014, 20:29 CET | Link
sadsa

Everyone knows about Garcinia Cambogia now. Its benefits are not secrets anymore. It looks like most of the celebrities are using this magic fruit to lose weight. So everyone is curious about it and they want to know about this particular fruit. You must have heard about this fruit from one of your spam emails. If something is made popular by spam email, then you must take precaution before buying it. Elena Haynes

 
27. Jun 2014, 12:42 CET | Link
garcinia cambogia dosage

This is a super blog post! A light sparks away from this post, there is a shinning here. This blog post is meant to be the best blog post ever! And I think it has achieved that respect. Super duper work! garcinia cambogia dosage

 
27. Jun 2014, 14:30 CET | Link
lingerie

This post is absolutely amazing! I never doubted your skills as an writer. And finally, you've shown off some of yours skills and written an absolutely wonderful post. Don't ever stop now. lingerie

 
29. Jun 2014, 09:34 CET | Link

Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.

 
29. Jun 2014, 13:12 CET | Link
siemens washing machine repairs london

DomesticRepairs are a long standing appliance repair company and we will carry out a first class washing machine repair within the M25 area of Greater London. We want you to recommend us to your friends so with our fully qualified team of courteous engineers we aim to return your machine to good health as quickly as possible following your call, or email contact. siemens washing machine repairs london

 
29. Jun 2014, 14:54 CET | Link
ìîÿ äîì

Êàê äà ñúîáðàçèòå ìåáåëèòå ñè ñïîðåä ãîëåìèíàòà íà æèëèùåòî âè ìîÿ äîì

29. Jun 2014, 16:10 CET | Link

Online Allure Formula: Michael Fiore Reveals What Your Online Dating Profile Is Secretly Saying To The Men Who Read It... Written for consumers by a consumer, this fan site includes a fun and informative Online Allure Formula review, ebook FAQ, and PDF download guide that provides an insider's look at the program and answers frequently asked questions about Michael Fiore's unique and highly popular online dating guide. https://www.rebelmouse.com/onlinealluremichaelfiore/

 
30. Jun 2014, 08:36 CET | Link
Alberta

I am appreciating it very much! Looking forward to another great article. deal and discounts

 
24. Jul 2014, 22:15 CET | Link

In the final days, Jesus made it clear there would be famines, deception, earthquakes and wars, and that there would be an increase in lawlessness and sorrow of men.

http://www.everydaydevotional.com/2014/07/dag-heward-mills-messages-he-that-tarry.html

 
28. Jul 2014, 07:39 CET | Link
DomesticRepairs are a long standing appliance repair company and we will carry out a first class washing machine repair within the M25 area of Greater London. We want you to recommend us to your friends so with our fully qualified team of courteous engineers we aim to return your machine to good health as quickly as possible f
<a href="http://izdelava-spletnihstrani.weebly.com/">izdelava spletnih strani</a>
<a href="https://sites.google.com/site/naprednaizdelavaspletnihstrani/izdelava-spletne-trgovine">Izdelava spletne trgovine</a>
<a href="https://sites.google.com/site/naprednaizdelavaspletnihstrani/">optimizacija in izdelava spletnih strani</a>
<a href="http://freshxdesign-spletne-storitve.blogspot.com/">gostovanje in izdelava spletnih strani</a>
<a href="http://profesionalnespletnestrani.wordpress.com/">optimizacija spletnih strani</a>
<a href="http://izdelavaspletnih-strani.webs.com/">izdelava spletne strani</a>
<a href="http://dzetodzeto.wix.com/spletnestrani">izdelava spletnih strani</a>
<a href="http://bit.ly/freshxdesign">izdelava spletnih strani</a>
<a href="http://goo.gl/j0M3fl">izdelava spletnih strani</a>
 
31. Jul 2014, 00:57 CET | Link
jack

Vyn advises farmers eager to get into their fields not to succumb to dental implants lauderhill three common tillage temptations: tilling too early or too often and when it's too wet. He says farmers need to be patient and wait for a break in the weather.

 
31. Jul 2014, 02:02 CET | Link

Great article, I look forward to reading more by the authors...

ecigs for cheap
 
21. Aug 2014, 17:46 CET | Link

Very good article and read, thanks for putting this information out.

 
29. Aug 2014, 11:39 CET | Link
gerald

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing - See more at: www.laan-info.dk

 
29. Aug 2014, 11:44 CET | Link
fred jansen

Informative post! Article I shared is definitely worth reading (and sharing). Btw. amazing content here at in.relation.to; here's an idea for some future article/shootout: lån og spar penge forbrugslån uden sikkerhed låne penge lån penge

 
01. Sep 2014, 10:21 CET | Link
jim

I have been assigned to do a report for our school newspaper on this subject, and your post has been beneficial. Can you please add more reference to this topic, thanks. f4x old school new body

Post Comment