ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh
38

CRUD Operations with JPA

The following subsections explain how to use JPA for CRUD database operations:
38

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum) are designated for enum fields: Other additional annotations (and enum) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.
38

DELETE Queries in JPA/JPQL

.Object class in queries (as an extension to JPA), so the following query can be used to delete
38

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.
38

JPA Annotations for Relationships

Relationships are persistent fields in persistable classes that reference other entity objects. The four relationship modes are represented by the following annotations: Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship
38

Storing JPA Entity Objects

setting the ObjectDB configuration or in a JPA portable way, by specifying the cascade-persist XML
7

Java EE 6 JPA Tutorial - NetBeans Project

To open and run the Java EE 6 Web Application tutorial project in NetBeans: Download and extract the project zip file: Java EE JPA Web App - Maven Project (7KB) Open the Maven project in NetBeans: Select File > Open Project.... Select the guestbook-jee6 directory and click Open Project. Run
7

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 tutorial package node (in the [Projects] window) and selecting New > Java Class... Enter Point as the class name - use exactly that case sensitive
7

Java EE 6 JPA Tutorial - Eclipse Project

To open and run the Java EE 6 Web Application tutorial project in Eclipse: Download and extract the project zip file: Java EE JPA Web App - Maven Project (7KB) Open the Maven project in Eclipse: Select File > Import... > Maven > Existing Maven Projects and click Next. Select the guestbook-jee6
7

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New > Class. Enter tutorial as the package name (case sensitive). Enter Point as the class name (case sensitive). Click Finish to create

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