Home » Search

About store

81-90 of 200Refresh
Tutorial
8

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click the project node (in the [Package Explorer] window), select New > Source Folder, enter src/main/java as Folder Name and click Finish. Open the [New Java Class] dialog box, e.g. by right clicking
Tutorial
8

Step 4: Add a Controller Class

entity object is constructed and stored in the database. Processing is forwarded to a JSP page
Tutorial
8

Step 4: Add a Controller Class

Guest entity object is constructed and stored in the database. Processing is forwarded to a JSP page
Tutorial
8

Step 4: Run the Application

the existing database file to store an additional 1,000 objects. You can view the content
Tutorial
8

Step 4: Run the Application

installation directory. Running the application again will use the existing database file to store
Manual
8

Obtaining a JPA Database Connection

database content, such as store, update, and delete should only be performed within an active
Manual
8

ObjectDB Developer's Guide

.             Shows how to use JPA to store, retrieve, update and delete database objects.             Explains
JDO Doc
7

javax.jdo.annotations.Key

of the column to store the key in. Name of the column to store the key in. Returns: name of the column to store the key in Default value: "" Since: JDO 2.1 Column[] columns The column(s) for the key ... .1 String mappedBy Name of a member in the value class where this key is stored. Name of a member in
JDO Doc
7

javax.jdo.annotations.Value

Name of the column to store the value in. Name of the column to store the value in. Returns: the name of the column to store the value in Default value: "" Since: JDO 2.1 Column[] columns The column ... where this value is stored. Name of a member in the key class where this value is stored. Returns
JPA Doc
7

javax.persistence.TableGenerator

to be used to initialize the column that stores the last value generated. (Optional) The initial value to be used to initialize the column that stores the last value generated. Default value: 0 Since: JPA ... others that may be stored in the table. (Optional) The primary key value in the generator table