Home » Search

About JPA

71-80 of 200Refresh
Tutorial
41

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

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
41

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.
JPA Doc
41

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

JPA Lifecycle Events

Callback methods are user defined methods that are attached to entity lifecycle events and are invoked automatically by JPA when these events occur. Internal Callback Methods Internal callback methods are methods that are defined within an entity class. For example, the following entity class
JPA Doc
41

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 Doc
41

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.
Manual
41

JPA Query Expressions (JPQL / Criteria)

] MEMBER [OF] and the [NOT] LIKE operator. Logical operators: AND, OR, NOT. In addition, JPA queries
Manual
41

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

Running JPA Queries

collection after query execution (e.g. by results.get(0)). To eliminate this routine operation JPA