ObjectDB ObjectDB

Internal Website Search

51-60 of 200 resultsRefresh
9

Storing JPA Entity Objects

New entity objects can be stored in the database either explicitly by invoking the persist method ... an instance of the Employee entity class in the database: Employee employee = new Employee("Samuel ... state is New. An explicit call to persist associates the object with an owner EntityManager em
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 ... ) and selecting New > Class. The package name should be guest. Enter GuestController as the class name - use exactly that case sensitive class name. Click Finish to create the new Spring Controller class. Now
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 ... New > Java Class... Enter GuestController as the class name - use exactly that case sensitive class name. The Package should be guest. Click Finish to create the new Spring Controller class. Now
1

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New ... ) and selecting New > Entity Class... (or New > Other... > Persistence > Entity Class and clicking ... name - use exactly that case sensitive package name. Click Next to create the new entity class. In
1

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New ... ) and selecting New > Entity Class... (or New > Other... > Persistence > Entity Class and clicking ... name - use exactly that case sensitive package name. Click Next to create the new entity class. In
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 ... package name should be guest. Click Finish to create the new servlet class. Now replace the content
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 ... package name should be guest. Click Finish to create the new servlet class. Now replace the content
1

Step 4: Add a Servlet Class

] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting New ... GuestServlet as the class name - use exactly that case sensitive class name. Click Finish to create the new servlet class. Now replace the content of the new source file with the following code: package guest
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 ... ) and selecting New > Class. Enter guest as the package name - use exactly that case sensitive package ... to create the new class. The new class should represent Guest objects in the database. Use copy
1

Step 4: Add a Servlet Class

] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting New ... GuestServlet as the class name - use exactly that case sensitive class name. Click Finish to create the new servlet class. Now replace the content of the new source file with the following code: package guest

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