I'm writing a java code using ormlite. I was wondering if it's possible to generate an ERD from the JPA annotations in my code. Basically, I need the reverse of this: How can I transform Entity-Based diagram to a JPA java code
IntelliJ IDEA (Ultimate) provides JPA to ER-Diagram generator.
In the Persistence tool window, select appropriate node. Then use context menu to select "ER Diagram".
Note that JPA facet must be linked to module and UML plugin should be active.