Fast Object Database for Java - with JPA/JDO support

Internal Website Search

21-30 of 200 resultsRefresh
135

Chapter 2 - JPA Entity Classes

JPA Entity classes are user defined classes whose instances can be stored in a database. To store data in an ObjectDB database using JPA you have to define entity classes that represent your application data object model. This chapter explains how to define and use entity classes.
135

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... "}) public class GuestServlet extends HttpServlet { private static final long serialVersionUID = 1L
135

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 replace the content of the Main class with the following content: package tutorial; import javax.persistence.*; import java.util.*; public class Main { public static void main(String
135

JDO Annotations for Classes

JDO supports two modes of persistable classes that can be set by the following annotations: Non persistable classes that should be enhanced (because of accessing persistent fields of other classes directly) can be marked with: The identity mode of persistence capable classes can be specified by using:
135

Step 4: Add a Servlet Class

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 ... ="GuestServlet", urlPatterns={"/guest"}) public class GuestServlet extends HttpServlet { private static
48

javax.jdo.spi.JDOImplHelper

javax.jdo.spi Class JDOImplHelper java.lang.Object javax.jdo.spi.JDOImplHelper This class is a helper class for JDO implementations. It contains methods to register metadata for persistence-capable classes and to perform common operations needed by implementations, not by end users
44

javax.jdo.JDOHelper

javax.jdo Class JDOHelper java.lang.Object javax.jdo.JDOHelper Implemented Interfaces: Constants This class can be used by a JDO-aware application to call the JDO behavior ... a PersistenceManagerFactory via various methods. This helper class defines static methods that allow a JDO
43

javax.jdo.identity.ByteIdentity

javax.jdo.identity Class ByteIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity ... , Comparable This class is for identity with a single byte field. Since: JDO 1.0 ByteIdentity() Constructor only for Externalizable. Constructor only for Externalizable. Since: JDO 1.0 ByteIdentity(Class
43

javax.jdo.identity.IntIdentity

javax.jdo.identity Class IntIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity ... , Comparable This class is for identity with a single int field. Since: JDO 1.0 IntIdentity() Constructor only for Externalizable. Constructor only for Externalizable. Since: JDO 1.0 IntIdentity(Class pcClass
43

javax.jdo.identity.LongIdentity

javax.jdo.identity Class LongIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity ... , Comparable This class is for identity with a single long field. Since: JDO 1.0 LongIdentity() Constructor only for Externalizable. Constructor only for Externalizable. Since: JDO 1.0 LongIdentity(Class

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