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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 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.
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.
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.
Hmm, we promised that we weren’t going to mention the JDBC code any more. Whoops.
- 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.
Darn it, we keep on coming across that JDBC code that isn’t supposed to be mentioned.
- 7.
“Schemata” is the plural of “schema.” See http://www.merriam-webster.com/dictionary/schema.
- 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
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-6518-4_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6517-7
Online ISBN: 978-1-4302-6518-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)