About class

21-30 of 200Refresh
JDO Doc
146

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:
Tutorial
146

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
Tutorial
146

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
Tutorial
146

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
Manual
88

JPA Persistable Types

. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes, Mapped superclasses, Embeddable classes. Simple Java data types: Primitive types, Wrappers, String ... and Serializable types (user or system defined). Note: Only instances of entity classes
Manual
75

JPA Persistence Unit

A JPA Persistence Unit is a logical grouping of user defined persistable classes (entity classes, embeddable classes and mapped superclasses) with related settings. Defining a persistence unit ... .jar <class>sample.MyEntity1class> <class>sample.MyEntity2class
Manual
66

Database Schema Evolution

Modifications to entity classes that do not change their persistent field definitions (their schema ... of an entity class are detected by ObjectDB. New entity objects have to be stored in the new class schema, and old entity objects, which were stored previously in the old class schema
JDO Doc
59

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
JDO Doc
51

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
JDO Doc
49

javax.jdo.identity.ShortIdentity

javax.jdo.identity Class ShortIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity ... , Comparable This class is for identity with a single short field. Since: JDO 1.0 ShortIdentity ... (Class pcClass, Short key) Constructor with class and key. Constructor with class and key. Parameters