In this tutorial, we will see how to install Hibernate Tools in Eclipse.
Hibernate Tools in Eclipse:
Hibernate Tools are a handy tool for developers to automate Hibernate related stuff. The typical use case for this is to do reverse engineering. That means if you wanted to generate POJOs, hibernate mappings or entity relationships along with the annotations, the Hibernate tools very helpful.
Install Hibernate Tools in Eclipse:
While installing the Hibernate tools in eclipse, we should be a bit careful with version compatibilities. Otherwise, we may get class not found exceptions while generating the sources.
So that the first and foremost thing for you is; check the Hibernate tool version, whether it compatible with your Eclipse IDE version or not. I hope this guide helps you to choose the combinations: Download JBoss Tools
Versions:
As part of this example, I am going to install the Hibernate Tools on the below versions.
- Eclipse IDE for Enterprise Java Developers
- Version: 2019-03 (4.11.0)
- Build id: 20190314-1200
- Red Hat CodeReady Studio 12.11.0.GA
- Java 8
Get Hibernate tools:
Copy the below-highlighted URL.
Open Eclipse:
Go to Help->Install New Software then the below window will be opened.
Click on the Add button, enter the name as JBoss-Tools and paste the URL copied on the previous step in Location. Click on Add button.
Click on the Next button.
It will show all the necessary components for JBoss tools, select the Hibernate dependent components and click on the Next button.
You will get the below installation details window. Review the installations and click on Next button.
Accept the Apache license and click on Finish.
Done.
Verify the Installation:
Restart the Eclipse and go to Window -> Perspective -> Open Perspective -> Other..
Then you would see the above Hibernate perspective.
Happy Learning 🙂