About JPA

31-40 of 200Refresh
FAQ
44

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
JPA Doc
44

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
JPA Doc
44

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
Manual
44

Query Parameters in JPA [2011-04-01]

(:) 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 ... of which are overridden in TypedQuery. That large number of methods is not typical to JPA, which generally
Manual
44

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 ... of which are overridden in TypedQuery. That large number of methods is not typical to JPA, which generally
Manual
43

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
Manual
43

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
Manual
43

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 ... ("SELECT c FROM Country c"); List results = query.getResultList(); One of the reasons that JPA requires
Tutorial
43

Getting Started with JPA [2011-02-09]

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
JPA Doc
42

JPA Queries

Queries are represented in JPA by the Query and TypedQuery interfaces: The JPA Query API section (in chapter 4 of the ObjectDB manual) provides detailed explanation of how exactly to use ... concatenating JPQL strings into a valid complete JPQL query. JPA 2 introduced the JPA Criteria Query API, as