About Tutorials

tutorial

Step 2: Define a JPA Entity Class

Explains how to create a JPA entity class in the NetBeans IDE. To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New > Java C ...

 
tutorial

Step 1: Create a Java Project

Explains how to create an Eclipse project with ObjectDB/JPA support. We start by creating a new Eclipse Project, using: File > New > Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of pro ...

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to create a JPA entity class in the Eclipse IDE. To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting New > Class ...

 
forum_thread

Guessbook tutorial: Java EE 6 JPA Tutorial - Maven Project

I have a Max OSX Lion and am running Netbeans 7.2 with Glassfish 3.1.2. I download the tutorial and run it. The moment I type something in the sign in block and click add, I get the following error trace: (Does anyone know a fix?)   #1 2012-09-30 07:18 I have a Max OSX Lion and am running Netbeans 7.2 with Glassfish 3.1.2. I download the tutorial and run it. The m ...

 
tutorial

Step 1: Create a Java Project

Explains how to create a NetBeans project with ObjectDB/JPA support. We start by creating a new NetBeans Project: Open the [New Project] dialog box, e.g. by using File > New Project... Select Java > Java Application and click Next . Choose a Project Name (e.g. Tutorial ). Th ...

 
tutorial

Step 4: Add a Controller Class

Explains how to add a servlet to an Eclipse Spring MVC JPA web application project. In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting  New > Class . The package n ...

 
tutorial

Step 4: Add a Controller Class

Explains how to add a servlet to a NetBeans Spring MVC JPA web application project. In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New > Java Class ... Enter Gu ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to a NetBeans Web Application. In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New > JSP ... Enter guest as the jsp ...

 
tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in NetBeans. In this step we will add code to the Main class (that was generated with the project) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste to replace the content of the Main cl ...

 
tutorial

JPA Web App Tutorial - NetBeans Project

Opening a JPA Maven web application project in the NetBeans IDE. To open and run the  JPA Web Application tutorial project in NetBeans: Download and extract the project zip file: JPA Web Application - Maven Project (6KB) . Open the Maven project in NetBeans: ...