About project

81-90 of 200Refresh
Tutorial
10

Step 3: Add a Main Class

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 ... Tour chapter of the ObjectDB Manual. The next step (and the last in this tutorial) is running the project.
Tutorial
7

Step 4: Run the Application

You can run the application now by right clicking the Main node (in the [Projects] window) and selecting Run File. The expected output in the [Output] window, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999) When you run the application
Tutorial
7

Step 2: Define a JPA Entity Class

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 Class... Enter Point as the class name - use exactly that case sensitive
Result
7

Posting to ObjectDB Website - Important Instructions

should have a no-arg public or protected constructor, An entity class must be a top level class, The project does not
Tutorial
7

Step 3: Define a Spring DAO Component

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 package node (in the [Projects] window under Source Packages) and selecting New
Manual
7

Index Definition

scan can be performed. ObjectDB also uses indexes for sorting results and for projection: SELECT
Tutorial
7

Step 5: Add a JSP Page

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 file name - use exactly that case sensitive class name. Click Finish
Tutorial
7

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New > Servlet... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java
Result
7

How to upgrade from ObjectDB 1.0?

). Refresh your IDE cache. Rebuild your project using the new jar file and enhance your classes using
Tutorial
7

Step 4: Add a Controller Class

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 GuestController as the class name - use exactly that case sensitive class