ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh

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 JPQL ... 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)

The criteria query API provides several ways for setting the SELECT clause. Single Selection Setting ... API expression can be used as selection, because all the criteria API expressions are represented by ... .name, c.capital.name FROM Country c can be defined using the criteria API as follows

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 ... Persistence API (JPA). By interacting with ObjectDB using standard JPA you can keep your application

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 method or ... . Type Interface Hierarchy Types are represented in the Metamodel API by descendant interfaces


because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API and Named Queries ... at runtime. The JPA Criteria API provides an alternative way for building dynamic queries, based

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)

.population > :p can be built by using the criteria query API as follows: CriteriaQuery<Country> q = cb

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 ... 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 and extends

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