About Eclipse

tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in Eclipse. In this step we will add a main class to the project with code that will store Point objects in the database and then retrieve them from the database: Open the [New Java Class] dialog box by right clicking the tutorial package node ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in an Eclipse Spring MVC JPA web application project. To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the  web.xml configuration file and to configure that servlet using another xml configuration file. Open the  web.xml ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application. In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting  New > Other... > Web > Servlet and clic ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to an Eclipse Web Application. In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting  New > Other... > Web > ...

 
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 6: Run the Web Application

Shows how to run the Eclipse/JPA Web Application Tutorial. You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As > Run on Server > Finish : Since we are using ObjectDB in embedded mode - the database file is create ...

 
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 ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application. Operations on the database will be performed by an instance of a session bean (EJB) class that we will define in this step: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selec ...

 
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 ...