Skip to main content

Integrating and Configuring Hibernate

  • Chapter
  • First Online:
Beginning Hibernate

Abstract

Integrating Hibernate into a Java application is easy. The designers of Hibernate avoided some of the more common pitfalls and problems with the existing Java persistence solutions, and created a clean but powerful architecture. In practice, this means that you do not have to run Hibernate inside any particular Java EE container or framework.Hibernate only requires Java 6 or later.

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

    The runtime requirement of at least Java 6 was confirmed by Steve Ebersole, lead of the Hibernate project. He also specified that JDK 1.7 was required in order to build Hibernate from source.

  2. 2.

    Arguments about “which build tool is best” are a lot like arguments about relative merits of IDEA, Emacs, Netbeans, Eclipse, and others. Everyone has an opinion, and that opinion is perfectly valid for the one who holds it; however, Maven is generally agreed upon not to be the “best build tool,” much like Eclipse is not the “best editor.” They’re popular. They’re common. That’s about it.

  3. 3.

    There are other classes in the tree, but we no longer care about JDBC in this chapter; they’re here because you were promised that chapter02’s tree was the same as chapter01’s. All of the JDBC stuff is going to be ignored.

  4. 4.

    Hmm, we promised that we weren’t going to mention the JDBC code any more. Whoops.

  5. 5.

    Hibernate implements the Java Persistence Architecture as an alternative API. It’s a little more generic than the native API, and is configured slightly differently, even though most of the concepts are identical.

  6. 6.

    Darn it, we keep on coming across that JDBC code that isn’t supposed to be mentioned.

  7. 7.

    “Schemata” is the plural of “schema.” See http://www.merriam-webster.com/dictionary/schema.

  8. 8.

    See http://www.ibm.com/developerworks/library/j-jndi/?ca=dnt-62 for an article that discusses this concept in some detail, although the implementation specifics are slightly dated.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Joseph B. Ottinger

About this chapter

Cite this chapter

Ottinger, J.B., Minter, D., Linwood, J. (2014). Integrating and Configuring Hibernate. In: Beginning Hibernate. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6518-4_2

Download citation

Publish with us

Policies and ethics