How to install Hibernate Tools in Eclipse IDE
Hibernate Tools is a handy tool for Java’s developers to generate tedious hibernate code easily. I always use the “reverse engineering” feature to generate the model class, hbm or annotation from database tables, it’s fast clean and very easy to use. However , the Hibernate tools installation in Eclipse is quite confusing in Hibernate or JBoss official website, at least to me
.
Steps of the installation
1) Know your Eclipse & Hibernate Tool version to download
There are different Hibernate tools version specified for a particular Eclipse IDE. Check the Matrix of supported platforms here. From the chart, if you are using Eclipse 3.5/Galileo, you need to download the JBoss Tools 3.1.0
P.S The Hibernate tool is bundle with JBoss tools.
2) Visit the JBoss tool download site
Visit JBoss tool download site.
Here are two options
1) Update Sites – Use Eclipse update site to download it automatically
2) Downloads – Download the zip file and put into Eclipse plugin folder
Personally, i do not like the 1st option, it will download many other stuffs which may not necessary. Let’s choose 2nd option
3) Download Hibernate Tools
Click on the JBoss tools version you want to download, and search for Hibernate Tools
P.S Downloaded file name should look like “HibernateTools-3.3.0.v200910281724M-H247-M4.zip”
4) Extract it
Extract it with your favor zip tool
5) Copy to Eclipse plugin & feature folder
Copy the extracted plugin and feature folders to Eclipse’s plugin & feature folders
6) Restart Eclipse, Done
Is Hibernate Tools installed successful?
You can check in the Eclipse perspective , “Windows–>Open Perspective–>Others” , make sure you see the Hibernate icon.
In Hibernate Perspective, you can test the Hibernate tool functionality, if it is not working as expected, make sure you have a correct Eclipse IDE and Hibernate Tool match.
Follow up : How to generate code with Hibernate Tools
- Java Core Technology - Java RegEx, Java XML, Java I/O, Java Misc
- J2EE Frameworks - Hibernate, Spring 2.5, Spring MVC, Struts 1.x, Struts 2.x
- Build Tools - Maven, Archiva
- Unit Test - jUnit, TestNG
- Client Scripts - jQuery
[...] How to install Hibernate Tools in Eclipse IDE [...]
Dear Friend,
First you download the hibernate tool from JBoss URL is :- http://www.jboss.org/tools/download now you just select the version of eClipse. then download Hibernate Tool zip file extract it in your machine and then after extraction you will see two folder will be available. One is plugin and 2nd will be features. So copy the content of plugin into eclipse plugin folder and then copy the features content into eclipse feature folder.
Now restart eclipse then go to windows->prespective-> others-> Hibernate
If Hibernate is showing there then it means hibernate tool is installed in your eclipse.
Regards,
Md Zahid Nasim
Pune.
Thanks for the summary.
[...] a quick guide on how to use Hibernate Tools to generate code from database. Please install the Hibernate Tools in Eclipse IDE before [...]