Hibernate Configuration (Student)


I’m an Information Technology student that’s still actively taking courses in college. Recently we were asked to teach ourselves Hibernate and demonstrate adequacy and understanding of the subject.

There seems to be a lot of different (often very outdated) guides on how to actually set up your IDE environment to support hibernate.

My main issue so far is that I consistently see various resources stating that you MUST use the correct versions of all dependent packages / libraries, to ensure they’re compatible with Hibernate. But I’ve no clue which versions of which library are compatible with which versions of Hibernate.

As an example: https://www.tutorialspoint.com/hibernate/hibernate_environment.htm

The above link lists these technologies as a prerequisite to using Hibernate: dom4j, Xalan, Xerces, cglib log4j, Commons, and SLF4J. However, most of the download links are either broken, outdated, or removed; and worse yet, there is zero indication of what version to download for any of them, let alone which version of Hibernate the guide is written for.

Can anyone shed some light on how to properly set up an environment for the latest release of Hibernate? Is anyone aware of a more modern, actually updated guide that’s applicable to the current version?

Thanks ahead of time, to anyone who took the time to read or answer this. I could really use the help.

You can use the Getting Started Guide offered by Hibernate.

In the download bundle, you will find a working example. You don’t have to match any dependency. Maven or Gradle can do that for you.

Judt import the project from Maven in your IDE, and everything is going to be wired for you.

1 Like

Thanks for the response! I installed Maven, alongside the suggested example. It seems to have correctly installed the project dependencies. I appreciate the help!

That’s the spirit! You should;d always use Maven or Gradle, even for small projects where you’re just testing some ideas. Maven or Gradle help you give a common structure to the project, resolve dependencies, and provide commands for compiling, testing and building the artifacts.