Abstract
Hibernate doesn’t limit you to using purely relational databases; Hibernate OGM stands as a project that can carry an object model into the realm of the NoSQL datastore, allowing developers to use a familiar mechanism to access multiple types of storage.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Hibernate OGM’s home page is http://hibernate.org/ogm/ .
- 2.
This is not a good idea. Sixty-four thousand columns, sure. Two billion is a bit much.
- 3.
Many caches are now billing themselves as forms of NoSQL. Whether this is true or not tends to depend on how persistent the cache really is.
- 4.
The Java Content Repository (JCR) can manage both; nodes in JCR can have an enforced schema or be freeform. Most adherents strongly advocate the freeform aspect.
- 5.
The shrieks of horror you’re hearing are from all the advocates of good design, wondering how one can ever create an application where objects aren’t designed, but just happen.
- 6.
This is by far the most important sentence in this chapter, in terms of how powerful Hibernate can be.
- 7.
Of course, there are also mismatches between the relational model and object design, which is part of what makes Hibernate so useful – it addresses most of those mismatches pretty well.
- 8.
It’s possibly a bit unfair to say that there’s no generalized solution; there may be.
- 9.
When writing this book, a version mismatch between Hibernate OGM and Hibernate’s core was the source of a rather frustrating bug. Using the correct (and matched) versions cleared the problem up.
- 10.
Lucene’s website is https://lucene.apache.org/ .
- 11.
From a runtime perspective, we would notice; PostgreSQL is very fast, but an in-memory datagrid like Infinispan will typically run circles around a relational database for all supported operations like reads and writes. PostgreSQL will be better at data warehousing and aggregation, speaking very generally.
- 12.
We’ll see this again when we look at the Hibernate Search facility.
- 13.
In a fuzzy search, it’s possible to get a hit on “gives” with “give” as a search term, and vice versa. Verbatim searches wouldn’t return a hit on “give” with “gives.”
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Joseph B. Ottinger, Jeff Linwood and Dave Minter
About this chapter
Cite this chapter
Ottinger, J.B., Linwood, J., Minter, D. (2016). Leaving the Relational Database Behind: NoSQL. In: Beginning Hibernate. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2319-2_12
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2319-2_12
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2318-5
Online ISBN: 978-1-4842-2319-2
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books