Reversing ORM POJO classes

You can generate ORM classes which has POJO be the persistent API. On the contrary, those generated POJO classes can be reversed back to class model. This is particularly useful when you want to produce a class diagram from legacy ORM classes (code).

To reverse engineer class model from ORM POJO classes:

  1. Select Tools > Hibernate > Reverse Java Classes... from the main menu.
  2. In the Reverse Java Classes dialog box, click Add to add the classpaths where the ORM classes exist.
    Add classpath
    Add classpath
  3. From the Available Classes pane, select the classes you want to reverse and click >.
    Add classes to reverse
    Add classes to reverse
  4. Click OK. You can find the reversed classes in the Model Explorer.
    ORM classes reversed
    ORM classes reversed

 

 
Chapter 7. Reverse ORM POJO Classes Table of Contents Chapter 8. Generating Object-Relational Mapping Code
 

Product

Try this feature with

Visual Paradigm for UML

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.