ObjectDB Database Search

1-50 of 200 results

JPA Criteria API Queries

The JPA Criteria API provides an alternative way for defining JPA queries, which is mainly useful for building dynamic queries whose exact structure is only known at runtime. JPA Criteria API vs ... of using the criteria API is that errors can be detected earlier, during compilation

JPA Metamodel API

The JPA Metamodel API , which is introduced in JPA 2.0, enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API . The main interface of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties

SELECT clause (JPQL / Criteria API)

of the query result list and other factors. SELECT in Criteria Queries The criteria query API   ... ;(overriding previously set SELECT content if any). Every valid criteria API expression can be used as selection, because all the criteria API expressions are represented by a sub interface

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java applications. The main advantage of JPA over JDBC (the older Java API for interacting with databases ... of the Java Persistence API (JPA). By interacting with ObjectDB using standard JPA

JPA Metamodel API

The JPA Metamodel API provides the ability to examine the persistent object model and retrieve ... Metamodel API is Metamodel . It can be obtained either by the EntityManagerFactory 's getMetamodel ... the specified type to ObjectDB. Type Interface Hierarchy Types are represented in the Metamodel API by

JPA Query API

variant is valid because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API ... can be built dynamically at runtime. The JPA Criteria API provides an alternative way for building dynamic

JPA Metamodel API Attributes

The following interfaces and enum types represent attributes (persistent fields and properties) in the JPA Metamodel API : See the Metamodel Attribute Interface Hierarchy section for more details and examples.

JPA Metamodel API Types

The following interfaces and enum represent types in the JPA Metamodel API :  See the Metamodel Type Interface Hierarchy section for more details and examples.

WHERE clause (JPQL / Criteria API)

can be built by using the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class

Paths and Types in JPQL and Criteria API

and navigations are represented in the JPA Criteria API  by the Path interface and by

ORDER BY clause (JPQL / Criteria API)

can be built using the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class

FROM clause (JPQL / Criteria API)

Explains how to use the FROM clause and JOIN expressions in a JPA/JPQL query.

Logical Operators in JPQL and Criteria API

Explains how to use AND, OR and NOT in JPQL queries.

ObjectDB API Reference

All about ObjectDB API Reference in Java/JPA database - explanations, examples, references, links and related information.

ObjectDB APIs

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

Comparison in JPQL and Criteria API

Explains how comparison operators can be used in JPQL queries, including in comparing null values.

Embedded in JDO metadata not working in objectDB 2.x ?

Hi, I am using JDO access to the database with the persistence defined in package.jdo XML metadata files. In those metadata files I have few persistence-capable classes which had extents in ObjectDB ... and own OID) in those few peristence-capable ones. Example of JDO metadata :        

JPA Persistence Unit

demonstrated above. XML Mapping Metadata ObjectDB supports using XML metadata as an alternative ... annotations which are more common and usually more convenient. Details on using XML metadata

Database Explorer

windows. The [Classpath for persistent classes and metadata ] field specifies a path to locate persistent classes and XML metadata . Setting this field is not mandatory because you can browse and edit ObjectDB database files when class and metadata files are not available. Some features of the Explorer

ObjectDB Object Database Features

support of the JPA and JDO APIs . Fundamental features of relational databases (e.g. primary keys ... database files (the ObjectDB Doctor ). Standard Persistence APIs ObjectDB is the only Object-Oriented Database with built in support for  JPA 2 . Java Persistence API (JPA) Most features of JPA 2

ObjectDB - JPA Object Database for Java

using the Java Persistence API (JPA). It is the first persistence solution that combined a powerful ... tutorial now...   Protect your investment. Use a standard Java API . ObjectDB became the first Object Oriented Database with built in support for the two standard Java database APIs : Java

Query Parameters in JPA

identifier that serves as the parameter name. JPA does not provide an API for defining the parameters explicitly (except when using criteria API ), so query parameters are defined implicitly by ... that is built by using the JPA Criteria API - parameters (as other query elements) are represented by objects

Is ObjectDB better than competing object databases?

: ObjectDB is unique in supporting the standard APIs . It is the only object database with built in 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

JPA Queries

Queries are represented in JPA by the Query and TypedQuery interfaces: The JPA Query API ... ;(e.g. "SELECT c FROM Country" ). Criteria Query API Building dynamic queries with a structure ... Query API , as a cleaner alternative that enables building a dynamic query by using instances

JPA Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of the Java Persistence API (JPA) 2.0. The content is derived from the original JPA documentation (in the EclipseLink JPA 2 RI) with some additions and notes. The JPA types are organized into the following sections: The purpose

JPA Class Enhancer

so: Enhancement API The ObjectDB Enhancer can also be invoked from Java code: com.objectdb.Enhancer.enhance ... .enhance( "test.pc.*,test.X", text.X.class.getClassLoader()); The enhancement API and invocation

Can I use ObjectDB to access a relational database?

To access relational databases using the Java Persistence API (JPA) you will need an Object Relational Mapping (ORM) tool, such as Hibernate, TopLink, EclipseLink, Open JPA or DataNucleus. The DataNucleus ORM implementation supports also the Java Data Objects (JDO) API . ObjectDB is a full featured

ObjectDB Overview

Features 100% pure Java Object-Oriented Database Management System (ODBMS). No proprietary API - managed only by standard Java APIs (JPA 2 / JDO 2). Extremely fast - faster than any other JPA / JDO

Chapter 4 - JPA Queries (JPQL / Criteria)

well as how to use the JPA Criteria API , which provides an alternative way for building queries in JPA, based on JPQL. The first section describes the API that JPA provides for using dynamic and static

ClassRef jakarta.persistence.PersistenceConfiguration

of an EntityManagerFactory . The configuration options available via this API reflect the similarly-named elements of the persistence.xml file. This API may not be used to configure a container-managed ... , even when this API is used within the Jakarta EE environment. If injection of the EntityManagerFactory

InterfaceRef jakarta.persistence.EntityManager

. The EntityManager API is used to perform operations that affect the state of the persistence context, or ... - the name of a query defined in metadata Return: the new query instance Throws: IllegalArgumentException ... of a query defined in metadata resultClass - the type of the query result Return: the new query instance

Which API should I use - JPA or JDO?

You can use ObjectDB with either the Java Persistence API (JPA) or the Java Data Objects (JDO) API ... the primary API , and if necessary, switch to JDO as a secondary API for special additional features that are supported only by JDO. Selecting the more popular API leads to more portable application

Retrieving JPA Entity Objects

The Java Persistence API (JPA) provides various ways to retrieve objects from the database. The retrieval of objects does not require an active transaction because it does not change the content of the database. The persistence context serves as a cache of retrieved entity objects. If a requested

Is ObjectDB better than Object Relational Mapping (ORM)?

is developed for an existing old relational database). By using the Java Persistence API (JPA

SpringBoot-Point

The SprintBoot-Point   example demonstrates a simple Spring Boot RESTful API web application that manage a collection of geometric points using Spring Boot and Jakarta Persistence (JPA) .   Web Application Functionality The application provides a single page web interface

Chapter 3 - Using JPA

This chapter explains how to manage ObjectDB databases using the Java Persistence API (JPA). The first two pages introduce basic JPA interfaces and concepts: The next section explains how to use JPA for database CRUD operations: More advanced topics (e.g. locking and events) are discussed in the last section:

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

Database Connection using JPA

Working with the Java Persistence API (JPA) consists of using the following interfaces: Overview A connection to a database is represented by an EntityManager instance, which also provides functionality for performing operations on a database. Many applications require multiple database

Criteria Query Selection and Results

The JPA Criteria API interfaces in this group are used for setting the SELECT and ORDER BY clauses and for representing query results as tuples. SELECT Clause Elements The content of the SELECT clause in a criteria query is represented by Selection : Because Selection  is a super interface

GROUP BY and HAVING clauses

using the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class); Root c = q

About Us

ObjectDB Software develops, markets and supports the ObjectDB Object-Oriented Database Management System (ODBMS). ObjectDB Software is the market leader in providing a very high performance persistence solution for Java, based on the Java Persistence API (JPA) and the Java Data Objects (JDO

Dynamic Metadata (JDO 3.0)

JDO 3 introduces the ability to specify and query metadata of persistable types dynamically. ObjectDB 2 supports specifying metadata by: JPA XML Mapping Metadata JPA Annotations JDO XML Metadata (e.g. package.jdo) JDO Annotations All these methods are static, i.e. the metadata has to be provided

InterfaceRef jakarta.persistence.EntityManagerFactory

, or it may be defined at runtime via the PersistenceConfiguration API . Every persistence unit ... with the EntityManagerFactory directly. The EntityManagerFactory provides access to certain other useful APIs : an instance ... is executed, information that can be set by means of the query APIs can be overridden. Information

InterfaceRef jakarta.persistence.StoredProcedureQuery

- name of the parameter as registered or specified in metadata Return: the result that is passed ... specified in metadata type - type of the parameter mode - parameter mode Return: the same query ... to a provider-specific API . If the provider implementation of Query does not support the given type

EntityManagerFactory.addNamedQuery(name,query) - JPA Method

procedure parameters. When the query is executed, information that can be set by means of the query APIs ... has been previously defined, either statically via metadata or via this method, that query definition

FieldRef jakarta.persistence.PersistenceConfiguration.SCHEMAGEN_DROP_SOURCE

JPA Static Field in jakarta.persistence.PersistenceConfiguration SCHEMAGEN_DROP_SOURCE The source of artifacts to be dropped. Standard sources are: metadata , script , metadata -then-script , script-then- metadata . The location of the script source is specified by {@value #SCHEMAGEN_DROP_SCRIPT_SOURCE}. Since: JPA 3.2

Step 1: Create a Maven Web Project

.transaction jta 1.1 javax.servlet servlet- api 2.5 provided javax.servlet.jsp jsp- api 2.1 provided org

Step 1: Create a Maven Web Project

;      javax.servlet    servlet- api    2.5    provided        javax.servlet.jsp    jsp- api    2.1    provided

What is the Java Data Objects (JDO)?

The Java Data Objects (JDO) is another standard for accessing persistent data in databases, using plain old Java objects (POJO) to represent the object model. Unlike Java Persistence API (JPA ... , and it is probably the most popular Java API for object databases today.

JDO Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of JDO 2.2. The content is derived from the original JDO documentation with some additions and notes. The most basic JDO types are: All the other JDO types are organized into the following sections: