Hibernate Mapping Wizard: Select Mapping Class
See Also
The Hibernate Mapping wizard generates a single mapping file for a specified class.
After you create the mapping file you need to edit the mapping file
in the XML editor to map the fields in the class to the corresponding columns in the table.
You can use the IDE's code completion feature to help you edit the mapping file.
The Select Mapping Class page of the wizard enables you to specify the class
that you want to map, the Hibernate configuration file and the table that you want
to map to the class.
- You must have the following to complete this wizard.
- Database connection for the
database that is registered with the IDE (database must be running).
- Hibernate configuration file that is named hibernate.cfg.xml.
In this page you specify the following details:
- Class to Map.
Type the name of the class you want to map or click the Browse button to locate the class.
- Configuration File.
Select the hibernate.cfg.xml configuration file in the dropdown list
(if not already selected).
- Database Table. Select the database table that you want to map to the selected class.
When you click Finish, the IDE generates the mapping file
and adds the <mapping resource> element to the hibernate.cfg.xml configuration file.
- See Also
- Generating Hibernate Mapping Files and POJOs from a Database
- Working with Hibernate
- Creating the Hibernate Configuration File
- About Hibernate Support
- Connecting to a Database
Legal Notices