About JPA

71-80 of 200Refresh
Manual
36

DELETE Queries in JPA/JPQL

.Object class in queries (as an extension to JPA), so the following query can be used to delete
JPA Doc
36

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum) are designated for enum fields: Other additional annotations (and enum) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.
Tutorial
36

Java EE 6 JPA Tutorial - NetBeans Project

To open and run the Java EE 6 Web Application tutorial project in NetBeans: Download and extract the project zip file: Java EE 6 JPA Web App - Maven Project (6KB). Open the Maven project in NetBeans: Select File > Open Project.... Select the guestbook-jee6 directory and click Open Project. Run
Manual
36

Working with JPA Entity Objects

Entity objects are in-memory instances of entity classes (persistable user defined classes), which can represent physical objects in the database. Managing an ObjectDB Object Database using JPA requires using entity objects for many operations, including storing, retrieving, updating and deleting
Tutorial
36

Java EE 6 JPA Tutorial - Eclipse Project

To open and run the Java EE 6 Web Application tutorial project in Eclipse: Download and extract the project zip file: Java EE 6 JPA Web App - Maven Project (6KB) Open the Maven project in Eclipse: Select File > Import... > Maven > Existing Maven Projects and click Next. Select the guestbook-jee6
Tutorial
36

Java EE 6 JPA Tutorial - IntelliJ Project

To open and run the Java EE 6 Web Application tutorial project in IntelliJ IDEA: Download and extract the project zip file: Java EE 6 JPA Web App - Maven Project (6KB). Open the project in IntelliJ IDEA: Select File > Open Project.... Select the guestbook-jee6 directory and click OK. Define
Manual
36

CRUD Operations with JPA

The following subsections explain how to use JPA for CRUD database operations:
Manual
36

JPA Query Structure (JPQL / Criteria)

The syntax of the Java Persistence Query Language (JPQL) is very similar to the syntax of SQL. Having a SQL like syntax in JPA queries is an important advantage because SQL is a very powerful query language and many developers are already familiar with it. The main difference between SQL and JPQL
JPA Doc
36

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.
JPA Doc
36

JPA Annotations for Relationships

Relationships are persistent fields in persistable classes that reference other entity objects. The four relationship modes are represented by the following annotations: Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship