Category Archives: JPA

Translating the NetBeans Generated JPA Controller to a Container Environment for GlassFish

The NetBeans New File wizards greatly simplify writing boilerplate code. One specific instance is the creation of JPA Controller Classes from an Entity Classes. The class file, or files, written for you will contain all the basic methods of JPA for CRUD operations on the entity or entities that you have. The only small issue is that this class is… Read more »

Creating a New Instance of GlassFish in NetBeans

Performing this task will resolve a problem that occurs when using NetBeans to configure a JDBC Connection Pool and JDBC Resource for GlassFish. The default installation of NetBeans and GlassFish results in the naming of the JDBC configuration file as sun-resources.xml when it should be named glassfish-resources.xml. This is a Windows only problem. The first step is to install NetBeans… Read more »