JBoss.orgCommunity Documentation
Hibernate Tools is a toolset for Hibernate 3 and related projects. The tools provide Ant tasks and Eclipse plugins for performing reverse engineering, code generation, visualization and interaction with Hibernate.
First, we propose to look through the list of key features that you can benefit from if you start using Hibernate Tools.
Table 1.1. Key Functionality for Hibernate Tools
Feature | Benefit | Chapter |
---|---|---|
Code Generation through Ant Task |
Allows to execute mapping or Java code generation from reverse engineering, schema generation and generation of other artifacts during the build process. | ant task |
Wizards for creation purposes and code generation |
A set of wizards are provided with the Hibernate Eclipse tools to quickly create common Hibernate files such as configuration (cfg.xml) files, mapping files and revenge.xml as well. Code Generation wizard helps to generate a series of various artifacts, there is even support for completely reverse engineer an existing database schema. | hibernate mapping file hibernate configuration file code generation |
Mapping and Configuration files Editors |
Support auto-completion and syntax highlighting. Editors also support semantic auto-completion for class names and property/field names, making it much more versatile than a normal XML editor. | mapping and configuration files editors |
Tools for organizing and controlling Reverse Engineering |
Code Generation wizard provides powerful functionality for generating a series of various artifacts like domain model classes, mapping files, annotated EJB3 entity beans, etc. and reveng.xml file editor allows to control this processes. | code generation reveng.xml editor |
Hibernate Console |
It is a new perspective in Eclipse which provides an overview of your Hibernate Console configurations, were you also can get an interactive view of your persistent classes and their relationships. The console allows you to execute HQL queries against your database and browse the result directly in Eclipse. | hibernate console |
HQL Editor and Hibernate Criteria Editor |
The editors are intended for writing, editing and executing HQL queries and criterias. They also support the functionality for generating simple queries. | hql and hibernate criteria editors |
Functional Mapping Diagram |
Makes possible to visualize structure of entities and relationships between them. | mapping diagram |
Eclipse JDT integration |
Hibernate Tools integrates into the Java code completion and build support of Java in Eclipse. This gives you code completion of HQL inside Java code. Additionally, Hibernate Tools will add problem markers if your queries are not valid against the console configuration associated with the project. |
All JBoss Developer Studio/JBoss Tools release documentation you can find athttp://docs.jboss.org/tools in the corresponding release directory.
There is some extra information about Hidernate on JBoss Wiki page.
The latest documentation builds are available at http://download.jboss.org/jbosstools/nightly-docs.