Java Reference
In-Depth Information
</property>
<property name="hibernate.connection.url">
jdbc:hsqldb:file:exampledb;SHUTDOWN=true
</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.dialect">
org.hibernate.dialect.HSQLDialect
</property>
</session-factory>
</hibernate-configuration>
The Reverse Engineering and Code Generation Tools
The last Hibernate Tools wizard is for the reverse engineering tool. This allows you to extract
the schema information from the database into an XML file. Additional information can be
added to this file using a tabbed control panel, which allows it to be used in the generation of
source code using the Hibernate Code Generation tool (accessed separately from the wizard).
This wizard is accessed from the File ä New ä Hibernate Reverse Engineering File menu
option from within the Hibernate Console perspective.
This then prompts you to specify a path and file name for the generated reverse engineer-
ing file. Select the default file name and location within the ToolsExample project.
When you are done, you have the option of selecting either Finish or Next. If you select
Finish, the wizard will assume that you want to use the details of all the tables in your data-
base when creating the reverse engineering file. Alternatively, if you click Next, you have the
opportunity to specify the individual tables and columns that should be included (as shown
in Figure B-23).
Figure B-23. Selecting the tables to reverse engineer
Search WWH ::




Custom Search