Geertjan's Blog

  • March 27, 2014

Absolutely Awesome NetBeans Plugin: JPA Modeler

Geertjan Wielenga
Product Manager

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.

Join the discussion

Comments ( 6 )
  • Javier Ortiz Thursday, March 27, 2014

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

  • guest Saturday, October 18, 2014

    too bad Netbeans generate entity classes from databases barely functions anymore

  • Geertjan Saturday, October 18, 2014

    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?

  • guest Monday, October 20, 2014

    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.

  • Geertjan Monday, October 20, 2014

    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?

  • Joandi Sunday, April 19, 2015

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

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.