Geertjan’s Blog: PostgreSQL, Ubuntu, NetBeans IDE (Part 2)

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. The

Here’s the application structure:

The Hibernate module that you see above has this content:

Here’s the result:

And here’s the source code:

http://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.3/misc/NBPostgreSQL

via Planet NetBeans https://blogs.oracle.com/geertjan/entry/postgresql_ubuntu_netbeans_ide_part

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s