anders.norgaard
anders.norgaard

Reputation: 1080

Ant task for generating ER diagram from JPA/Hibernate annotated classes

Does anyone know of a tool that can do that?

Linguine maps seems to only work on old hibernate xml files. And the hibernate tool task hbm2hbmxml seems to have a bug so that I can't do the two step process "annotations->hbmxml->diagram"

Best, Anders

Upvotes: 8

Views: 4616

Answers (2)

anders.norgaard
anders.norgaard

Reputation: 1080

Hmm, I've found this great post on developerworks. There the author seems to generate entity diagrams from a live database. I wonder if I can go "annotated classes -> live db (eg. H2) -> SchemasSpy generated diagram?

And yes, API Viz looks great.

I've blogged my hacky solution with SchemaSpy.

Upvotes: 2

AndyT
AndyT

Reputation: 1453

Not quite what you're looking for but you could use API Viz which automatically produces UML like diagrams from class hierarchies and can be augmented with doclet tags.

You'd have to mark up your classes a little, but it's a great tool and worth using wherever you're trying to visualise large or complex projects.

Upvotes: 1

Related Questions