ObjectDB Database Search

51-100 of 200 results

JPA Metamodel and Graphs

The Jakarta Persistence ( JPA ) Metamodel API provides a type-safe way to introspect the persistent object model at runtime. It allows developers to programmatically examine entities, embeddables ... and further explanation, refer to the JPA Metamodel API section in the ObjectDB manual. Criteria query

Deleting JPA Entities

that the Address object references. Orphan removal JPA supports a more aggressive cascading removal mode ... the database. They are especially useful for deleting many entities in a single operation. For more information, see DELETE Queries in JPA /JPQL .

JPA Metamodel API

The JPA Metamodel API enables you to examine the persistent object model and retrieve details about managed classes, persistent fields, and properties, similar to how Java reflection provides this capability for general Java types. The Metamodel interface The main interface of the JPA Metamodel

JPA Shared (L2) Entity Cache

: Handled differently by JPA providers. In ObjectDB, this value is equivalent ... . JPA provides two properties that you can use to change the default behavior. jakarta.persistence

JPA Relationships Annotations

of references to other entities. Jakarta Persistence ( JPA ) provides annotations to configure ... maintain collections of each other. Note: Unlike other JPA implementations, ObjectDB does not require

JPA Components Annotations

You can use Jakarta Persistence ( JPA ) annotations to mark classes as persistent and to configure their behavior. Persistent type definitions Use these annotations to assign a role to a persistent ... , see the Persistent Classes chapter in the ObjectDB manual. Access modes and cache JPA and ObjectDB

Detached JPA Entities

Detached entities are objects in a special state where they are not managed by an EntityManager but still represent objects in the database. Compared to managed entities, detached objects have limited functionality: Many JPA methods, for example, lock , do not accept detached objects. Retrieval by

JPA Attributes Annotations

Jakarta Persistence ( JPA ) annotations define how entity attributes (fields and properties) are managed. These annotations control data persistence behavior, including fetching strategies, relationship types, and data storage formats. General field mapping Configure standard state mapping behavior

JPA Query Expressions (JPQL / Criteria)

[OF] String operator : [NOT] LIKE Logical operators : AND , OR , and NOT JPA queries also support predefined

CRUD Operations with Jakarta Persistence (JPA)

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

JPA Fetch Plan Graphs

Jakarta Persistence ( JPA ) Entity Graphs optimize query performance by specifying which attributes should be loaded eagerly. Graph definitions Use the following interfaces to define the hierarchy and scope of your fetch plans: The root interface for defining a fetch plan. An EntityGraph serves

DELETE Queries in JPA/JPQL

to JPA , so you can use the following query to delete all objects in the database: DELETE FROM Object

JPA Value Generation Annotations

Jakarta Persistence ( JPA ) supports automatic value generation. This feature is primarily useful for primary key fields, but ObjectDB extends support to regular persistent fields. Several annotations control automatic value generation. Generation configuration Configure field-level generation

JPA Container Injection Annotations

Jakarta Persistence ( JPA ) provides standard annotations to manage dependencies on container-managed persistence resources in both Jakarta EE and Spring Framework environments. They enable the container to inject EntityManager or EntityManagerFactory proxies directly into application components

JPA Runtime Tuning & Configuration

with annotations), JPA follows a hierarchical override model: EntityManagerFactory (global

CRUD Database Operations with JPA

of this manual describes how to use JPA for database operations in more detail.

Chapter 2 - JPA Entity Classes

Entity class is a user-defined class whose instances can be stored in a database. To store data in an ObjectDB database by using Jakarta Persistence ( JPA ), you define entity classes that represent your application's data object model. This chapter contains the following sections:

Running JPA Queries

exactly one result, JPA provides the getSingleResult() method. The following aggregate query

JPA Criteria Query Selection and Results

The JPA Criteria API provides type-safe interfaces for defining query result expressions and ordering, mirroring the SELECT and ORDER BY clauses in JPQL or SQL. These interfaces allow you to specify exactly what data is returned and how it is sorted within the result set. SELECT clause elements

Advanced JPA Topics

This section covers advanced JPA topics:

JPA Annotations

Jakarta Persistence ( JPA ) uses annotations to define metadata that governs how the persistence engine manages objects and their database mappings. These annotations configure entity behavior, lifecycle events, and relationship structures across various architectural layers. Class level definitions

JPA ORM Mapping Annotations

Jakarta Persistence ( JPA ) provides a comprehensive set of annotations and enums for mapping object models to relational database schemas. These metadata elements define how entities, attributes, and relationships translate to tables, columns, and foreign keys. While ObjectDB ignores these ORM

Managing JPA Entities

Entities are in-memory instances of entity classes (persistable, user-defined classes) that represent physical objects in the database. Managing an ObjectDB database with JPA requires using entities for many operations, including storing, retrieving, updating, and deleting database objects

JPA Criteria FROM and JOIN

is structured as follows: Criteria Query From Components in Jakarta Persistence ( JPA ) 3.2 

JPA Listeners & Callbacks Annotations

Jakarta Persistence ( JPA ) provides lifecycle callback annotations to trigger custom logic during specific entity state transitions. These annotations allow you to define methods within an entity or a listener class. Listeners configuration Entity Entities and mapped superclasses

JPA Query Structure (JPQL / Criteria)

Explains the structure of a JPQL query, which consists of 6 clauses: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.

JPA Criteria Query Date/Time Extraction

All about JPA Criteria Query Date/Time Extraction in Java/JPA database - explanations, examples, references, links and related information.

JPA Fetch Graphs Annotations

All about JPA Fetch Graphs Annotations in Java/JPA database - explanations, examples, references, links and related information.

UPDATE SET Queries in JPA/JPQL

Explains how to apply server side bulk update using a JPA/JPQL query.

JPA Web Application Tutorial

This tutorial demonstrates how to create and run a database driven Java web application using Tomcat 6, ObjectDB and JPA . The demo web application manages a basic guestbook page. Every visitor ... below the form: Persistence is managed by JPA . Every visitor that has signed the guestbook is represented

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 project node (in the [Package Explorer] window ... a context listener class that will manage a JPA's EntityManagerFactory representing the ObjectDB database.

Getting Started with JPA - NetBeans Project

To open and run the  Quick Start with JPA tutorial project in NetBeans: Download and extract the project zip file: Getting Started with JPA - Maven Project (3KB) Open the Maven project in NetBeans: Select File Open Project... . Select the points-console directory and click Open Project . Run

Getting Started with JPA - IntelliJ Project

To open and run the  Quick Start with JPA tutorial project in IntelliJ IDEA: Download and extract the project zip file: Getting Started with JPA - Maven Project (3KB) Open the project in IntelliJ IDEA: Select File Open Project... . Select the points-console directory and click Open Project

JPA Web App Tutorial - Eclipse Project

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

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 project node (in the [Projects] window ... listener class that will manage a JPA's EntityManagerFactory representing the ObjectDB database.

JPA Web App Tutorial - IntelliJ Project

To open and run the  JPA Web Application tutorial project in IntelliJ IDEA: Download and extract the project zip file: JPA Web App - Maven Project (6KB) Open the project in IntelliJ IDEA: Select File Open Project... . Select the guestbook-web directory and click OK . Define the Server

Getting Started with JPA - Eclipse Project

To open and run the Quick Start with JPA tutorial project in Eclipse: Download and extract the project zip file: Getting Started with JPA - Maven Project (3KB) Open the Maven project in Eclipse: Select File Import... Maven Existing Maven Projects and click Next . Select the points-console

Spring MVC JPA Tutorial - NetBeans Project

To open and run the  Spring MVC JPA tutorial project in NetBeans: Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the Maven project in NetBeans: Select  File Open Project... . Select the  guestbook-spring directory and click  Open

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

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

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

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

Java EE 6 JPA Tutorial - IntelliJ Project

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

Report Generation with BIRT and JPA

Demonstrates how to use ObjectDB as a data source of the Business Intelligence and Reporting Tools (BIRT), open source report generator.

General JPA Tutorials

All about General JPA Tutorials in Java/JPA database - explanations, examples, references, links and related information.

Web App JPA Tutorials

All about Web App JPA Tutorials in Java/JPA database - explanations, examples, references, links and related information.

jakarta.persistence.criteria.CriteriaBuilder

Jakarta Persistence ( JPA ) Interface jakarta.persistence.criteria.CriteriaBuilder Used to construct ... compatible with varags. Since: Jakarta Persistence ( JPA ) 2.0 The JPA Criteria API Queries article ... : absolute value. Since: Jakarta Persistence ( JPA ) 1.0 Expression all ( Subquery subquery ) Create

ObjectDB Object Database Features

support of the JPA and JDO APIs. Fundamental features of relational databases (e.g. primary keys ... Database with built in support for  JPA . Java Persistence API ( JPA ) Most features of JPA ... - much faster than any other JPA solution. General Highly optimized code (as a result of many profiling

ObjectDB 2.9 Developer's Guide

Welcome to ObjectDB for Java/ JPA Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JPA (Java Persistence API). The main purpose of this guide is to make you productive with ObjectDB and JPA in a short time. Guide Structure Demonstrates basic database

Is ObjectDB better than competing object databases?

support for the Java Persistence API ( JPA ). It also supports a more recent and advanced version of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA ... relational database by using an ORM  JPA provider such as Hibernate, EclipseLink or Open JPA