Reverse Engineering Hibernate Model to Object Model
VP’s products allow you to reverse engineer not only the Java classes, but also the hibernate model to object model with ORM-Persistable stereotyped. The database configuration is also reverse engineered as the database setting is defined in the hibernate model.
Reverse Engineering Hibernate Model
To reverse engineer Hibernate model:
On the menu, click
Tools > Object-Relational Mapping (ORM) > Reverse Hibernate....
The Reverse Hibernate Model dialog box is displayed.
Select the path of the Hibernate xml files by using the

button.
Select the type of reverse engineering to be performed from the drop-down menu of Reverse, either Configuration and Mapping,
Configuration only or
Mapping only.
Click
OK. The hibernate model are reverse engineered to class models and entities which can be found under the Model tree.
View Mapping between Reversed Object Model and Data Model
After reverse engineered the hibernate model, you can use an ORM diagram to view the mapping between the reversed classes and entities. For more detailed information on ORM diagram, please read Using ORM Diagram and Showing Object-Relational Mapping between Object and Data Models.
Create a new ORM diagram by using the
New ORM Diagram icon.
Add the reversed classes to the ORM diagram by dragging the class models from the
Model tree to the ORM diagram.
Drag the entities from the
Model tree to the ORM diagram to add the entities to the ORM diagram.
Right-click the ORM diagram, select
View > Attribute Mapping from the pop-up menu.
The mapping between the attributes of class models and columns of entities are shown.
Showing Reverse Engineered Database Configuration
You can also check the reversed engineered database connection by the following steps:
Click the
Database Configuration icon, to open the
Database Configuration dialog box.
Select the connected database from the
Database Configuration dialog box, the
Database Setting is shown which shows the database configuration has been reversed successfully.

Related Articles
Resources
-
-
-
-
Chapter 4 Object Model - This chapter shows how to depict the object models by using a Class Diagram or an EJB diagram, and describes the mapping from the object model to data model.
Chapter 5 Data Model - This chapter shows you how to depict the object models by using Entity Relationship Diagram and how to reverse database, and describes the mapping from the data model to the object model.
-