How to Use NetBeans DataClassG Plugin with Web Applications
Join the DZone community and get the full member experience.
Join For FreeThe 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.
- Create a web project:
-
Select the GlassFish Server:
-
Select Java Server Faces and PrimeFaces:
-
The web project is created, as usual:
-
Add a new database connection in the Services window:
-
Select the plugin's button in the toolbar:
-
Choose the connection:
-
Packages and classes are generated:
-
Now we use the JSFClassG button:
-
Windows:
-
XHTML is generated:
-
Configure the pool of conections in Glassfish:
-
Run the project (test/test):
-
Menu of the application:
application
Web Service
NetBeans
Opinions expressed by DZone contributors are their own.
Comments