Reputation: 23
I have class diagram created with "Sparx Enterprise Architect v8.0" and i need to generate JPA-based classes with annotations that reflect relations to use it in the code. The problem is that i can convert it to EJB but not JPA which is required for my task.
Upvotes: 2
Views: 5769
Reputation: 2648
G9 plugin from Marketplace in Spring Tool Suit did job.
Reference URL https://www.esito.no/produkter/dbimport/
Upvotes: 0
Reputation: 576
If you export your model to ecore format, then you can use Texo to generate JPA annotated POJO for your model.
Upvotes: 0
Reputation: 155
Have a look at the JPA Modeler for Netbeans, will be best fit for your requirement :
generate the database schema and DAO classes from class diagram
You can find the demo here : JPA Modeler Demo - Youtube
Upvotes: 0
Reputation: 340883
I don't know this product, however they claim that it:
supports modeling of database schema and automatic generation of DDL scripts for eleven DBMS targets out-of-the-box
Once you have the database schema I believe there are various tools that can reverse engineer it and generate JPA entities. Few random hits in Google:
Upvotes: 2