Geertjan's Blog

  • April 20, 2014

Themes for NetBeans JPA Modeler

Geertjan Wielenga
Product Manager

The latest release, which came out today, of the awesome JPA Modeler plugin for NetBeans (by Gaurav Gupta) provides a theme switcher. Click to enlarge the image below.

Not one line of code in the many classes you see above was created by me. Instead, they were all generated from the diagram, which was generated from my database.

Get it here:


Join the discussion

Comments ( 2 )
  • Alexander Schugg Friday, April 25, 2014

    Hello Gertjan

    I'm starting a new project and installed the JPA-Plugin.

    My problem:

    - I built the JPA-Diagram

    - then I generated the source code -> it worked well

    - then I generated the persistence, also ok

    - then I created the JPATest.java (with createEntityManagerFactory and EntityManager), which generates the tables. It all works well and I can see the tables from the classes

    - after that I changed different code (like attributes and some Java-Code in direct) direct in the classes

    -> now I tried to generate a new JPA-Diagram from the changed classes with right-mouse-click -> new -> "JPA-Diagram from reverse engineering (Classes)-> filled in the expected forms and pressed "finish"

    -> unfortunately it didn't generate any new diagram!

    -> My intention was, that after programming I update the JPA-Diagramm

    -> An other problem is, that if I generate once more the source code from the JPA-Diagram (as an example I added some new relations to the diagram), it overwrites all the changes I made before direct in the classes.

    -> A third problem is, that if I generate the JPA-Diagram from the Database-Table it generates the diagram with all the connections, but it does not generate the embeddable JPA-Classes which are repesented as a table in the database? -> Is that because I can not add a primary-key?

    Do you know any solution?

    Thanks in advance,


  • Geertjan Friday, April 25, 2014

    You think the solution might be to file an issue?


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