About Tutorial

tutorial

Step 2: Define a JPA Entity Class

Explains how to define a JPA entity class in a NetBeans Web Application. 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 [Projects] window) and selecting New > Java Class ... Enter G ...

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to define a JPA entity class in an Eclipse Web Application. 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 ...

 
tutorial

Step 1: Create a Maven Web Project

Explains how to create a NetBeans Web Maven project with Spring and ObjectDB/JPA support.... Enter Maven Group Id (e.g. com.objectdb.tutorial.spring ). Enter Maven Version (e.g. 1.0 ) and ... > <groupId > com.objectdb.tutorial.spring </groupId > <artifactId > Guestbook ...

 
tutorial

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in a NetBeans Web Application. The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory javax.persistence.EntityManagerFactory JPA interface Interface used to interact with the entity manager ...

 
tutorial

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in an Eclipse Web Application. The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory javax.persistence.EntityManagerFactory JPA interface Interface used to interact with the entity manager ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in an Eclipse Spring MVC JPA web application project. Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest packa ...

 
tutorial

Step 1: Create a Java EE 6 Web Project

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

 
tutorial

Step 1: Create a Java EE 6 Web Project

Explains how to create an Eclipse Java EE 6 (J2EE) project with ObjectDB/JPA support. We start by creating a new Java EE 6 dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File > New > Project... Select Web > Dynamic Web Project and click Next . Choose a Project Name ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in a NetBeans Spring MVC web application project. To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting  New > Entity Class ... (or  New ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in an Eclipse Spring MVC web application project. To store objects in an ObjectDB database using JPA we need to define an entity class: Right click the project node (in the [Package Explorer] window), select  New > Source Folder , enter src/main/java as Folder ...