ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh
8

What's next?

/JPA projects simply by modifying this sample program. Reading the Next Chapters
1

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
1

JPA Web Application Tutorial

. This tutorial is available in the following versions: In addition the demonstrated application is available as a Maven project:
1

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 project node (in the [Package Explorer] window) and selecting New > Class. Enter guest as the package name - use exactly that case sensitive package
1

Getting Started with JPA

: In addition the demonstrated application is available as a Maven project:
1

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the GuestServlet node (in the [Projects] window), selecting Run File, and then clicking OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the GlassFish directory (e.g
1

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Projects] window), selecting Run File, and then clicking OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory
1

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
1

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
0

[ODB1] Chapter 3 - Persistent Classes

(and also from the command line) is to add a new simple main class to a project that applies on the fly

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support