Absolutely Awesome NetBeans Plugin: JPA Modeler

Possibly the most exciting new NetBeans plugin that's under development is the JPA Modeler, led by Gaurav Gupta, who also works on the Business Process Modeling plugin for NetBeans:


Watch this short movie to see it in action. In its latest incarnation, available from the link above, you can reverse engineer a diagram from existing JPA sources, which is also amazing, and let's you use the JPA modeler on old sources, i.e., no need to create a new project from scratch to use this plugin. And, whenever the diagram becomes out of date, you can simply regenerate it, from the current state of your sources. I've tried it and it delivers exactly what I had expected. Plus, it looks seriously professional and very polished, as this annotated YouTube clip shows:

If you watch the above, you'll see right near the end that you can change the diagram, then regenerate the tables in your database, and recreate the JPA classes. I.e., this lets you visually model your data and then generate all the database content and Java classes from the diagram. Really powerful.

Also, follow the JPA Modeler YouTube Channel, there's lots of content there, constantly being updated with new movies.


It would be great to merge this with the UML efforts.

Posted by Javier Ortiz on March 27, 2014 at 08:26 AM PDT #

too bad Netbeans generate entity classes from databases barely functions anymore

Posted by guest on October 17, 2014 at 10:27 PM PDT #

Indeed, it works perfectly. If it doesn't, can you help by giving a clue what's going wrong? How can anyone fix anything with the description you've provided?

Posted by Geertjan on October 17, 2014 at 11:54 PM PDT #

It doesn't work perfectly if customizing java code-templates causes entity-generation to silently fail.

The problem was (I saw similar references about 1-2 years ago speculating that templates must be corrupted) is that I had customized java-template in Netbeans to remove a lot of fluff (eg license headers etc.); I had done that in NB7, and imported setting to NB8 which is why both 7 and 8 broke in the same way.

Java-template customization should come with a warning that it can break NB horribly and in obscure ways . Anyway - lesson learned (regression test with all my work-processes after each NB configuration change.

Posted by guest on October 19, 2014 at 09:09 PM PDT #

No idea at all what you're talking about. Can you drop me an e-mail to geertjan dot wielenga at oracle dot come describing what I must do to reproduce this, plus a link to whatever it is that you're referring to from one or two years ago?

Posted by Geertjan on October 19, 2014 at 09:30 PM PDT #

I'm not sure why we cannot uninstall "user installed plugin" one-by-one? are netbeans programmer too lazy to do it?

Posted by Joandi on April 19, 2015 at 06:52 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« June 2016