JBoss.orgCommunity Documentation
Hibernate Tools™ can be used "standalone" via Ant 1.6.x or fully integrated into an Eclipse + WTP based IDE, such as the case with JBDS/JBoss Tools™, or a default Eclipse + WTP installation. The following sections describe the install steps in these environments.
The Hibernate Tools 3.4.0™ (the current release version) requires Eclipse Helios (3.6).
JBoss Tools 3.4.0™ (the latest release) includes Hibernate Tools 3.3.0™ and thus no additional steps are required beyond downloading and installing JBoss Tools™. If you need to update to a newer version of the Hibernate Tools™ just follow the instructions in Section 2.2, “Eclipse IDE”.
To install the Hibernate Tools™ into any Eclipse 3.6™ based IDE you can either use the JBoss Tools Update Site.
If you need more detailed instructions on plugin installation and general usage of Eclipse™ then check out https://eclipse-tutorial.dev.java.net/ and especially https://eclipse-tutorial.dev.java.net/visual-tutorials/updatemanager.html which covers the use of the update manager.
The Hibernate Tools™ plugins currently use WTP 3.x, which at this time is the latest stable release from the Eclipse Webtools™ project.
Because the WTP™ project has not always used proper versioning with their plugins, WTP™ plugins may be present in your existing Eclipse™ directory from other Eclipse™ based projects that are from an earlier WTP™ release but has either the same version number or higher. It is thus recommended that if you have issues with features provided by WTP™ to install the plugins on a clean install of Eclipse™ to ensure there are no version collisions.
To use the tools via Ant™ you need the hibernate-tools.jar
file and associated libraries. The libraries are included in the distribution from the Hibernate™ website and the Eclipse™ update site. The libraries are located in the Eclipse™ plugins directory at /plugins/org.hibernate.eclipse.x.x.x/lib/tools/
. These libraries are 100% independent from the Eclipse™ platform. How to use the Hibernate Tools™ via Ant™ tasks is described in Chapter 5, Ant Tools.