Hibernate Tools is an Eclipse integrated development tool plugin from JBoss that simplifies the development of ORM framework hibernate, as well as JBoss seam,ejb3.
1. Download Hibernate Tools
- For different releases of Eclipse, Hibernate Tools for the corresponding version number needs to be downloaded. To view your own version number:
打开Eclipse→Help→About Eclipse IDE
. My version isPhoton Release (4.8.0)
Method 1°--Offline Installation method (faster)
It's faster to download Hibernate Tools on the Hibernate website and then install it offline in Eclipse.
For new versions of Eclipse, you may not find a zip file for the corresponding hibernate tools, you can only download all of the JBoss tools. (I don't know why I have to re-install the new system after the latest version of Eclipse, probably looking comfortable ヾ (o?ω?)? )
After entering the Hibernate website, find the hyperlinks to JBoss tools and jump over to the following URL:
Http://tools.jboss.org/downloads/overview.html
Click on "Archives" on the image to find the corresponding JBoss tools download for all version numbers. Choose the stable version of Photon 4.8.0 here, go in and select "Artifacts" option, download "Sources Zip of all JBoss Core Tools"
- Unzip the downloaded package and locate the Jbosstools-hibernate folder (refer to other blog content below):
* * First step: * *
Create a new Myplugins and Links folder in the root directory of Eclipse,
Then create the Hibernate_tools folder under Myplugins;
Put the features and plugins two folders in the Hibernate_tools folder;
* * Step Two: * *
In the Links folder, create a file with the suffix. Link.
Write path=/myplugins/hibernate_tools in file, save
* * Step Three: * *
Restart Eclipse. It's ready to use.
Note: The header of your XML file has
Method 2°--Online Installation Method (slower):
If you can't find the hibernate tools that correspond to your eclipse version using the above method, and you don't want to download all of the JBoss tools, refer to this method.
"Additional Instructions" open Eclipse, select Help→Install New Software...
, click add
, start an appropriate name, paste the following link in the Location column and click the Add button:
http://download.jboss.org/jbosstools/photon/stable/updates/
注:因为我的Eclipse版本是photon,如果你的是其它版本,请在链接的对应位置替换为相应版本号的名字
- Select Hibernate tools under JBoss Web and Java EE development node to install.
Click Next, you need to wait a while, the installation time is a bit long, you can do something else (cup of tea, the second snack (°u°)?)
2. Test if Hibernate tools is installed successfully
- Restart Eclipse, right-click in Project Explorer, and in the
New→Other
popup dialog box, if you can find the Hibernate folder, the installation is successful.
Hibernate Learning--hibernate Tools for Eclipse plugins download and installation