Internal Website Search

1-10 of 200 resultsRefresh

JPA Criteria API Queries

The JPA Criteria API provides an alternative way for defining JPA queries ... > JPA Criteria API vs JPQL JPQL queries are defined as strings, similarly to SQL. JPA criteria queries, on the other hand, are defined by the instantiation

JPA Metamodel API

The JPA Metamodel API provides the ability to examine the persistent object model ... > The Metamodel Interface The main interface of the JPA Metamodel API is jpa/metamodel/Metamodel">Metamodel. It can be obtained either by the

JPA Entity Fields

, persistent and inverse fields) can be used in both jpa/entity/types#entity_classes">entity classes and jpa/entity/types#embeddable_classes">embeddable classes ... > Primary key fields are discussed in the jpa

Setting and Tuning of JPA Queries

The jpa/Query">Query and jpa/TypedQuery">TypedQuery interfaces define various setting and tuning methods that may affect jpa/query/execute">query execution if invoked before a query

Locking in JPA

JPA 2 supports both optimistic locking and pessimistic locking ... to the same data by two concurrent users. Locking in ObjectDB (and in JPA) is always at the database ... > When using ObjectDB, optimistic locking is jpa/setting/database#the_locking

Storing JPA Entity Objects

the jpa/EntityManager/persist_Object">persist method or implicitly as ... ", "Wurzelbacher"); em.jpa/EntityManager/getTransaction">getTransaction().jpa/EntityTransaction/begin">begin(); em.jpa/EntityManager/persist

CRUD Database Operations with JPA

Given an jpa/EntityManager">EntityManager, em, that represents a JPA connection to the object database, we can use ... > em.jpa/EntityManager/getTransaction">getTransaction

Database Connection using JPA

Working with the Java Persistence API (JPA) consists of using the following interfaces ... to a database is represented by an jpa/EntityManager">EntityManager instance, for every HTTP request. The main role of an jpa

Retrieving JPA Entity Objects

The Java Persistence API (JPA) provides various ways to retrieve objects from ... the content of the database. The jpa/persistence/managed#the_persistence ... that is retrieved from the database (or from the jpa/persistence/cache">L2 cache

JPA Persistable Types

for storing data in the database. ObjectDB supports all the JPA persistable types, which are: jpa/entity/fields">fields. In addition ... times. Referencing instances of other persistable types from multiple jpa