Skip to main content

Leaving the Relational Database Behind: NoSQL

  • Chapter
  • First Online:
Beginning Hibernate

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Hibernate OGM’s home page is http://hibernate.org/ogm/ .

  2. 2.

    This is not a good idea. Sixty-four thousand columns, sure. Two billion is a bit much.

  3. 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. 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. 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. 6.

    This is by far the most important sentence in this chapter, in terms of how powerful Hibernate can be.

  7. 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. 8.

    It’s possibly a bit unfair to say that there’s no generalized solution; there may be.

  9. 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. 10.

    Lucene’s website is https://lucene.apache.org/ .

  11. 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. 12.

    We’ll see this again when we look at the Hibernate Search facility.

  13. 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

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics