By Geertjan-Oracle on Nov 17, 2012
Now let's create the start of a CRUD application on the NetBeans Platform, using Hibernate and PostgreSQL to do so. Here's what I see in NetBeans IDE after setting things up as outlined yesterday:
The NetBeans Platform CRUD Tutorial should get you up and started creating the NetBeans Platform application. Open the generated "persistence.xml" in Design mode and then switch the persistence library to Hibernate. Then the rest should be the same as described in the tutorial.
Here's the application structure I ended up with at the end, with the difference that PostgreSQL and Hibernate are now used instead of Java Derby and EclipseLink:
The Hibernate module that you see above has this content:
Here's the result when I run the application, i.e., the data shown in the first screenshot above is now displayed as Nodes in a TopComponent:
And here's the source code: