Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Use NetBeans DataClassG Plugin with Web Applications

DZone's Guide to

How to Use NetBeans DataClassG Plugin with Web Applications

Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

The NetBeans DataClassG Plugin provides a class generator from databases, together with a new basic API for database persistence. Install the plugin and then take the following steps to use it.

  1. Create a web project:


  2. Select the GlassFish Server:


  3. Select Java Server Faces and PrimeFaces:


  4. The web project is created, as usual:

  5. Add a new database connection in the Services window:

  6. Select the plugin's button in the toolbar:

  7. Choose the connection:

  8. Packages and classes are generated:

  9. Now we use the JSFClassG button:

  10. Windows:

  11. XHTML is generated:

  12. Configure the pool of conections in Glassfish:

  13. Run the project (test/test):

  14. Menu of the application:

Are you using Bitbucket to accomplish your company's mission? Share your company’s mission with #Forthecode for a chance to be featured on our homepage, our social media channels, or win a free t-shirt!

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}