ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
40

Defining a JPA Entity Class

To be able to store Point objects in the database using JPA we need to define an entity class. A JPA entity class is a POJO (Plain Old Java Object) class, i.e. an ordinary Java class that is marked ... is an ordinary Java class. The only unique JPA addition is the @Entity annotation, which marks the class as
40

JPA 2 Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks: Java EE container annotations: Many
40

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 four most basic JPA types are: All the other JPA types are organized
40

JPA Metamodel API

The JPA Metamodel API, which is introduced in JPA 2.0, enables examining the classes, fields ... of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties ... : The JPA Metamodel API may optionally be used with the JPA Criteria API. Many of the interfaces in
40

Query Parameters in JPA

(:) followed by a valid JPQL identifier that serves as the parameter name. JPA does not provide an API ... . Criteria Query Parameters In a JPA query that is built by using the JPA Criteria API - parameters (as ... of which are overridden in TypedQuery. That large number of methods is not typical to JPA
39

JPA / JDO Class Enhancer

(and actually required by JPA but not enforced by ObjectDB) to avoid accessing persistent fields ... : Quick Start with JPA JPA Web Application Java EE JPA Spring MVC and JPA Similarly, enhancement
39

JPA Named Queries

can be defined in JPA XML mapping files instead of using the @NamedQuery annotation. ObjectDB supports JPA XML ... mainly for Object Relational Mapping (ORM) JPA providers and less so when using ObjectDB ... ("Country.findAll"); List results = query.getResultList(); One of the reasons that JPA requires
39

Locking in JPA

JPA 2 supports both optimistic locking and pessimistic locking. Locking is essential to avoid ... in ObjectDB (and in JPA) is always at the database object level, i.e. each database object is locked ... some ORM JPA providers) is defined in the entity class or not. Pessimistic Locking The main
7

Getting Started with JPA

This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple Point entity objects, where each Point has two persistent fields - x and y. If you already know JPA - the source code will be straightforward
4

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. Both share similar architecture, design and abilities. When to prefer JPA JPA is more commonly used. Therefore, it might be the first choice for most new applications. You can use JPA as the primary

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